mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
19 lines
470 B
PHP
19 lines
470 B
PHP
--TEST--
|
|
IntlTimeZone::getTZDataVersion(): errors
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('intl'))
|
|
die('skip intl extension not enabled');
|
|
--FILE--
|
|
<?php
|
|
ini_set("intl.error_level", E_WARNING);
|
|
|
|
var_dump(IntlTimeZone::getTZDataVersion('foo'));
|
|
|
|
--EXPECTF--
|
|
|
|
Warning: IntlTimeZone::getTZDataVersion() expects exactly 0 parameters, 1 given in %s on line %d
|
|
|
|
Warning: IntlTimeZone::getTZDataVersion(): intltz_get_tz_data_version: bad arguments in %s on line %d
|
|
bool(false)
|