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::class, ': ', $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