Skip to content

Commit c23eefb

Browse files
committed
Don't leak pcntl last_error across requests
1 parent aa0d886 commit c23eefb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/pcntl/pcntl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ PHP_RINIT_FUNCTION(pcntl)
428428
zend_hash_init(&PCNTL_G(php_signal_table), 16, NULL, ZVAL_PTR_DTOR, 0);
429429
PCNTL_G(head) = PCNTL_G(tail) = PCNTL_G(spares) = NULL;
430430
PCNTL_G(async_signals) = 0;
431+
PCNTL_G(last_error) = 0;
431432
return SUCCESS;
432433
}
433434

0 commit comments

Comments
 (0)