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