xref: /PHP-8.2/ext/date/tests/bug73239.phpt (revision 242b9438)
1--TEST--
2Bug #73239 (Odd warning/exception message with invalid timezones)
3--INI--
4date.timezone=UTC
5--FILE--
6<?php
7ini_set('date.timezone', 'dummy');
8try {
9	$dt = new DateTime('now');
10} catch (Exception $e) {
11	echo $e->getMessage(), "\n";
12}
13?>
14--EXPECTF--
15Warning: ini_set(): Invalid date.timezone value 'dummy', using 'UTC' instead in %sbug73239.php on line %d
16