mirror of
https://github.com/php/php-src.git
synced 2026-04-21 15:08:16 +02:00
186612e4d7
Closes GH-6309
19 lines
470 B
PHP
19 lines
470 B
PHP
--TEST--
|
|
IntlTimeZone::useDaylightTime(): errors
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('intl'))
|
|
die('skip intl extension not enabled');
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
|
|
intltz_use_daylight_time(null);
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught TypeError: intltz_use_daylight_time(): Argument #1 ($timezone) must be of type IntlTimeZone, null given in %s:%d
|
|
Stack trace:
|
|
#0 %s(%d): intltz_use_daylight_time(NULL)
|
|
#1 {main}
|
|
thrown in %s on line %d
|