mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Don't leak pcntl last_error across requests
This commit is contained in:
parent
aa0d886cbc
commit
c23eefb1ad
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue