1--TEST-- 2IntlGregorianCalendar::__construct(): 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 11var_dump(intlgregcal_create_instance(1,2,3,4,5,6,7)); 12var_dump(intlgregcal_create_instance(1,2,3,4,5,6,7,8)); 13var_dump(intlgregcal_create_instance(1,2,3,4)); 14var_dump(new IntlGregorianCalendar(1,2,NULL,4)); 15var_dump(new IntlGregorianCalendar(1,2,3,4,NULL,array())); 16 17 18--EXPECTF-- 19 20Warning: intlgregcal_create_instance(): intlgregcal_create_instance: too many arguments in %s on line %d 21NULL 22 23Warning: intlgregcal_create_instance(): intlgregcal_create_instance: too many arguments in %s on line %d 24NULL 25 26Warning: intlgregcal_create_instance(): intlgregcal_create_instance: no variant with 4 arguments (excluding trailing NULLs) in %s on line %d 27NULL 28 29Warning: IntlGregorianCalendar::__construct(): intlgregcal_create_instance: no variant with 4 arguments (excluding trailing NULLs) in %s on line %d 30NULL 31 32Warning: IntlGregorianCalendar::__construct() expects parameter 6 to be long, array given in %s on line %d 33 34Warning: IntlGregorianCalendar::__construct(): intlgregcal_create_instance: bad arguments in %s on line %d 35NULL 36