Skip to content

Commit

Permalink
Don't leak pcntl last_error across requests
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Oct 22, 2020
1 parent aa0d886 commit c23eefb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/pcntl/pcntl.c
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ PHP_RINIT_FUNCTION(pcntl)
zend_hash_init(&PCNTL_G(php_signal_table), 16, NULL, ZVAL_PTR_DTOR, 0);
PCNTL_G(head) = PCNTL_G(tail) = PCNTL_G(spares) = NULL;
PCNTL_G(async_signals) = 0;
PCNTL_G(last_error) = 0;
return SUCCESS;
}

Expand Down

0 comments on commit c23eefb

Please sign in to comment.