summaryrefslogtreecommitdiff
path: root/ext/intl/tests/timezone_countEquivalentIDs_error.phpt
blob: 4fc9b02a1d11b461f18da5c5f67b20b19f9db30f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
IntlTimeZone::countEquivalentIDs(): 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::countEquivalentIDs("foo\x80"));
--EXPECTF--
Warning: IntlTimeZone::countEquivalentIDs(): intltz_count_equivalent_ids: could not convert time zone id to UTF-16 in %s on line %d
bool(false)