Fix regex for failing test on 5.2

This commit is contained in:
ADmad 2012-05-21 19:38:54 +05:30
parent 4fd45c07f5
commit e58e3c5314

View file

@ -991,7 +991,7 @@ class CakeTime {
}
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
if ($regex === null) {
$regex = '#^(Africa|America|Antartica|Arctic|Asia|Atlantic|Australia|Europe|Indian|Pacific|UTC)/#';
$regex = '#^((Africa|America|Antartica|Arctic|Asia|Atlantic|Australia|Europe|Indian|Pacific)/|UTC)#';
}
$identifiers = DateTimeZone::listIdentifiers();
} else {