Skip to content

Commit 9d5d563

Browse files
Merge branch 'php:master' into master
2 parents 431c1b3 + 5f42a46 commit 9d5d563

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

ext/random/random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -827,7 +827,7 @@ static PHP_GINIT_FUNCTION(random)
827827
/* {{{ PHP_GSHUTDOWN_FUNCTION */
828828
static PHP_GSHUTDOWN_FUNCTION(random)
829829
{
830-
if (random_globals->random_fd > 0) {
830+
if (random_globals->random_fd >= 0) {
831831
close(random_globals->random_fd);
832832
random_globals->random_fd = -1;
833833
}
File renamed without changes.

0 commit comments

Comments
 (0)