mirror of
https://github.com/php/php-src.git
synced 2025-08-20 09:24:05 +02:00

To avoid duplicate type checks. In debug builds arginfo is still checked and will generate an assertions if the function doesn't subsequently throw an exception. Some test results change due to differences in zpp and arginfo error messages.
18 lines
462 B
PHP
18 lines
462 B
PHP
--TEST--
|
|
IntlTimeZone::getErrorMessage(): errors
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('intl'))
|
|
die('skip intl extension not enabled');
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
|
|
var_dump(intltz_get_error_message(null));
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught TypeError: intltz_get_error_message() expects parameter 1 to be IntlTimeZone, null given in %s:%d
|
|
Stack trace:
|
|
#0 %s(%d): intltz_get_error_message(NULL)
|
|
#1 {main}
|
|
thrown in %s on line %d
|