1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00
- Fixed pcntl_signal() returning NULL when passing wrong parameters
This commit is contained in:
Matteo Beccati
2009-03-28 01:32:51 +00:00
parent 155564d727
commit 724ae4b95e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -757,7 +757,7 @@ PHP_FUNCTION(pcntl_signal)
zend_bool restart_syscalls = 1;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lz|b", &signo, &handle, &restart_syscalls) == FAILURE) {
return;
RETURN_FALSE;
}
if (!PCNTL_G(spares)) {
+1 -1
View File
@@ -25,7 +25,7 @@ echo "ok\n";
signal dispatched
Warning: pcntl_signal() expects at least 2 parameters, 0 given in %s
NULL
bool(false)
bool(true)
Warning: pcntl_signal(): Invalid value for handle argument specified in %s