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(IntlCalendar::createInstance(1, 2, 3));
16var_dump(intlcal_create_instance(1, 2, 3));
17var_dump(intlcal_create_instance(new X, NULL));
18var_dump(intlcal_create_instance(NULL, array()));
19--EXPECTF--
20Warning: IntlCalendar::createInstance() expects at most 2 parameters, 3 given in %s on line %d
21
22Warning: IntlCalendar::createInstance(): intlcal_create_calendar: bad arguments in %s on line %d
23NULL
24
25Warning: intlcal_create_instance() expects at most 2 parameters, 3 given in %s on line %d
26
27Warning: intlcal_create_instance(): intlcal_create_calendar: bad arguments in %s on line %d
28NULL
29
30Warning: intlcal_create_instance(): intlcal_create_instance: passed IntlTimeZone is not properly constructed in %s on line %d
31NULL
32
33Warning: intlcal_create_instance() expects parameter 2 to be string, array given in %s on line %d
34
35Warning: intlcal_create_instance(): intlcal_create_calendar: bad arguments in %s on line %d
36NULL
37