Skip to content

Commit e765f7c

Browse files
committed
change from review
1 parent 337be1b commit e765f7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/date/php_date.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -5346,7 +5346,7 @@ static void php_do_date_sunrise_sunset(INTERNAL_FUNCTION_PARAMETERS, bool calc_s
53465346
if (N > 24 || N < 0) {
53475347
N -= floor(N / 24) * 24;
53485348
}
5349-
if (N > 24 || N < 0 || !zend_finite(N)) {
5349+
if (!(N <= 24 && N > 0)) {
53505350
RETURN_FALSE;
53515351
}
53525352

ext/date/tests/gh18481.phpt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
--TEST--
2-
GH-18481 date_sunrise with utcOffset as INF
2+
GH-18481 (date_sunrise with utcOffset as INF)
33
--FILE--
44
<?php
55

0 commit comments

Comments
 (0)