mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
MFB: Fixed bug #43373 (pcntl_fork() should not raise E_ERROR on error)
This commit is contained in:
parent
83cfd0ce0e
commit
78fadae2ce
1 changed files with 1 additions and 1 deletions
|
@ -225,7 +225,7 @@ PHP_FUNCTION(pcntl_fork)
|
||||||
|
|
||||||
id = fork();
|
id = fork();
|
||||||
if (id == -1) {
|
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);
|
RETURN_LONG((long) id);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue