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--
19
20Warning: IntlGregorianCalendar::getGregorianChange() expects exactly 0 parameters, 1 given in %s on line %d
21
22Warning: IntlGregorianCalendar::getGregorianChange(): intlgregcal_get_gregorian_change: bad arguments in %s on line %d
23bool(false)
24
25Warning: intlgregcal_get_gregorian_change() expects exactly 1 parameter, 2 given in %s on line %d
26
27Warning: intlgregcal_get_gregorian_change(): intlgregcal_get_gregorian_change: bad arguments in %s on line %d
28bool(false)
29
30Catchable fatal error: Argument 1 passed to intlgregcal_get_gregorian_change() must be an instance of IntlGregorianCalendar, integer given in %s on line %d
31