forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PHP-8.4: Fix phpGH-16454: Unhandled INF in date_sunset() with tiny $utcOffset
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--TEST-- | ||
GH-16454 (Unhandled INF in date_sunset() with tiny $utcOffset) | ||
--FILE-- | ||
<?php | ||
var_dump(date_sunrise(0, SUNFUNCS_RET_STRING, 61, -150, 90, PHP_FLOAT_MAX)); | ||
var_dump(date_sunrise(0, SUNFUNCS_RET_STRING, 61, -150, 90, -PHP_FLOAT_MAX)); | ||
var_dump(date_sunset(0, SUNFUNCS_RET_STRING, 61, -150, 90, PHP_FLOAT_MAX)); | ||
var_dump(date_sunset(0, SUNFUNCS_RET_STRING, 61, -150, 90, -PHP_FLOAT_MAX)); | ||
?> | ||
--EXPECTF-- | ||
Deprecated: Constant SUNFUNCS_RET_STRING is deprecated in %s on line %d | ||
|
||
Deprecated: Function date_sunrise() is deprecated since 8.1, use date_sun_info() instead in %s on line %d | ||
bool(false) | ||
|
||
Deprecated: Constant SUNFUNCS_RET_STRING is deprecated in %s on line %d | ||
|
||
Deprecated: Function date_sunrise() is deprecated since 8.1, use date_sun_info() instead in %s on line %d | ||
bool(false) | ||
|
||
Deprecated: Constant SUNFUNCS_RET_STRING is deprecated in %s on line %d | ||
|
||
Deprecated: Function date_sunset() is deprecated since 8.1, use date_sun_info() instead in %s on line %d | ||
bool(false) | ||
|
||
Deprecated: Constant SUNFUNCS_RET_STRING is deprecated in %s on line %d | ||
|
||
Deprecated: Function date_sunset() is deprecated since 8.1, use date_sun_info() instead in %s on line %d | ||
bool(false) |