xref: /php-src/ext/date/tests/gh16454.phpt (revision 9bc34182)
1--TEST--
2GH-16454 (Unhandled INF in date_sunset() with tiny $utcOffset)
3--FILE--
4<?php
5var_dump(date_sunrise(0, SUNFUNCS_RET_STRING, 61, -150, 90, PHP_FLOAT_MAX));
6var_dump(date_sunrise(0, SUNFUNCS_RET_STRING, 61, -150, 90, -PHP_FLOAT_MAX));
7var_dump(date_sunset(0, SUNFUNCS_RET_STRING, 61, -150, 90, PHP_FLOAT_MAX));
8var_dump(date_sunset(0, SUNFUNCS_RET_STRING, 61, -150, 90, -PHP_FLOAT_MAX));
9?>
10--EXPECTF--
11Deprecated: Constant SUNFUNCS_RET_STRING is deprecated in %s on line %d
12
13Deprecated: Function date_sunrise() is deprecated since 8.1, use date_sun_info() instead in %s on line %d
14bool(false)
15
16Deprecated: Constant SUNFUNCS_RET_STRING is deprecated in %s on line %d
17
18Deprecated: Function date_sunrise() is deprecated since 8.1, use date_sun_info() instead in %s on line %d
19bool(false)
20
21Deprecated: Constant SUNFUNCS_RET_STRING is deprecated in %s on line %d
22
23Deprecated: Function date_sunset() is deprecated since 8.1, use date_sun_info() instead in %s on line %d
24bool(false)
25
26Deprecated: Constant SUNFUNCS_RET_STRING is deprecated in %s on line %d
27
28Deprecated: Function date_sunset() is deprecated since 8.1, use date_sun_info() instead in %s on line %d
29bool(false)
30