mirror of
https://github.com/php/php-src.git
synced 2026-04-28 18:53:33 +02:00
4d90848d68
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.
20 lines
462 B
PHP
20 lines
462 B
PHP
--TEST--
|
|
IntlCalendar::setTime(): bad arguments
|
|
--INI--
|
|
date.timezone=Atlantic/Azores
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('intl'))
|
|
die('skip intl extension not enabled');
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
|
|
var_dump(intlcal_set_time(1));
|
|
--EXPECTF--
|
|
Fatal error: Uncaught ArgumentCountError: intlcal_set_time() expects exactly 2 parameters, 1 given in %s:%d
|
|
Stack trace:
|
|
#0 %s(%d): intlcal_set_time(1)
|
|
#1 {main}
|
|
thrown in %s on line %d
|