1--TEST--
2IntlGregorianCalendar::getGregorianChange(): bad arguments
3--INI--
4date.timezone=Atlantic/Azores
5--SKIPIF--
6<?php
7if (!extension_loaded('intl'))
8	die('skip intl extension not enabled');
9--FILE--
10<?php
11ini_set("intl.error_level", E_WARNING);
12
13$c = new IntlGregorianCalendar(NULL, 'pt_PT');
14var_dump($c->getGregorianChange(1));
15
16var_dump(intlgregcal_get_gregorian_change($c, 1));
17var_dump(intlgregcal_get_gregorian_change(1));
18--EXPECTF--
19Warning: IntlGregorianCalendar::getGregorianChange() expects exactly 0 parameters, 1 given in %s on line %d
20
21Warning: IntlGregorianCalendar::getGregorianChange(): intlgregcal_get_gregorian_change: bad arguments in %s on line %d
22bool(false)
23
24Warning: intlgregcal_get_gregorian_change() expects exactly 1 parameter, 2 given in %s on line %d
25
26Warning: intlgregcal_get_gregorian_change(): intlgregcal_get_gregorian_change: bad arguments in %s on line %d
27bool(false)
28
29Fatal error: Uncaught TypeError: Argument 1 passed to intlgregcal_get_gregorian_change() must be an instance of IntlGregorianCalendar, int given in %s:%d
30Stack trace:
31#0 %s(%d): intlgregcal_get_gregorian_change(1)
32#1 {main}
33  thrown in %s on line %d
34