1--TEST--
2IntlTimeZone::getErrorCode(): errors
3--SKIPIF--
4<?php
5if (!extension_loaded('intl'))
6	die('skip intl extension not enabled');
7--FILE--
8<?php
9ini_set("intl.error_level", E_WARNING);
10
11$tz = IntlTimeZone::createTimeZone('Europe/Lisbon');
12var_dump($tz->getErrorCode(array()));
13
14var_dump(intltz_get_error_code(null));
15
16--EXPECTF--
17
18Warning: IntlTimeZone::getErrorCode() expects exactly 0 parameters, 1 given in %s on line %d
19
20Warning: IntlTimeZone::getErrorCode(): intltz_get_error_code: bad arguments in %s on line %d
21bool(false)
22
23Catchable fatal error: Argument 1 passed to intltz_get_error_code() must be an instance of IntlTimeZone, null given in %s on line %d
24