mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-08 01:37:30 +00:00
- Reverting: pcntl_signal() returning NULL when passing wrong parameters
# Wow, my first commit and I broke something, sorry about that :(
This commit is contained in:
1 parent
61476ca182
commit
98bafbbd67
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -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_FALSE;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!PCNTL_G(spares)) {
|
||||
|
||||
@@ -25,7 +25,7 @@ echo "ok\n";
|
||||
signal dispatched
|
||||
|
||||
Warning: pcntl_signal() expects at least 2 parameters, 0 given in %s
|
||||
bool(false)
|
||||
NULL
|
||||
bool(true)
|
||||
|
||||
Warning: pcntl_signal(): Invalid value for handle argument specified in %s
|
||||
|
||||
Reference in new issue
Block a user