1--TEST--
2IntlCalendar::createInstance: bad arguments
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
11class X extends IntlTimeZone {
12function __construct() {}
13}
14
15var_dump(intlcal_create_instance(new X, NULL));
16?>
17--EXPECTF--
18Warning: intlcal_create_instance(): intlcal_create_instance: passed IntlTimeZone is not properly constructed in %s on line %d
19NULL
20