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