1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00
Files
archived-php-src/ext/date/tests/bug73239.phpt
T

14 lines
337 B
PHP

--TEST--
Bug #73239 (Odd warning/exception message with invalid timezones)
--FILE--
<?php
ini_set('date.timezone', 'dummy');
try {
$dt = new DateTime('now');
} catch (Exception $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECTF--
Warning: ini_set(): Invalid date.timezone value 'dummy', using 'UTC' instead in %sbug73239.php on line %d