mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Don't leak pcntl last_error across requests
This commit is contained in:
parent
aa0d886cbc
commit
c23eefb1ad
@ -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…
Reference in New Issue
Block a user