mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
MFB: Fixed bug #43373 (pcntl_fork() should not raise E_ERROR on error)
This commit is contained in:
parent
83cfd0ce0e
commit
78fadae2ce
@ -225,7 +225,7 @@ PHP_FUNCTION(pcntl_fork)
|
||||
|
||||
id = fork();
|
||||
if (id == -1) {
|
||||
php_error_docref(NULL TSRMLS_CC, E_ERROR, "Error %d", errno);
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error %d", errno);
|
||||
}
|
||||
|
||||
RETURN_LONG((long) id);
|
||||
|
Loading…
Reference in New Issue
Block a user