From: Nikita Popov Date: Thu, 22 Oct 2020 12:18:45 +0000 (+0200) Subject: Don't leak pcntl last_error across requests X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c23eefb1ad80deb08e66d78621e9fc221fb8b875;p=php Don't leak pcntl last_error across requests --- diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index 0df11aa388..f9a48b0406 100644 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -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; }