1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/date/tests/bug73239.phpt
2023-02-08 10:27:33 +00:00

16 lines
380 B
PHP

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