[php-src] PR #16483: Fix GH-16454: Unhandled INF in date_sunset() with tiny $utcOffset
| From: | cmb69 | Date: | Thu, 17 Oct 2024 15:13:45 +0000 |
| Subject: | [php-src] PR #16483: Fix GH-16454: Unhandled INF in date_sunset() with tiny $utcOffset | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-29282@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16483
Author: cmb69
After normalization,
N is supposed to be in range [0, 24], but for very large and very
small $utcOffset this is not necessarily the case, since the normalization might yied
-inf or inf. If that happens, we let the function fail silently, since it
is highly unlikely that such $utcOffsets are passed in practice.