mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
16 lines
398 B
PHP
16 lines
398 B
PHP
--TEST--
|
|
IntlTimeZone::useDaylightTime(): errors
|
|
--EXTENSIONS--
|
|
intl
|
|
--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
|