We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1b3e175 + 32f503e commit 5f42a46Copy full SHA for 5f42a46
ext/random/random.c
@@ -827,7 +827,7 @@ static PHP_GINIT_FUNCTION(random)
827
/* {{{ PHP_GSHUTDOWN_FUNCTION */
828
static PHP_GSHUTDOWN_FUNCTION(random)
829
{
830
- if (random_globals->random_fd > 0) {
+ if (random_globals->random_fd >= 0) {
831
close(random_globals->random_fd);
832
random_globals->random_fd = -1;
833
}
0 commit comments