Skip to content

Commit 78fadae

Browse files
author
Ilia Alshanetsky
committed
MFB: Fixed bug #43373 (pcntl_fork() should not raise E_ERROR on error)
1 parent 83cfd0c commit 78fadae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pcntl/pcntl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ PHP_FUNCTION(pcntl_fork)
225225

226226
id = fork();
227227
if (id == -1) {
228-
php_error_docref(NULL TSRMLS_CC, E_ERROR, "Error %d", errno);
228+
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error %d", errno);
229229
}
230230

231231
RETURN_LONG((long) id);

0 commit comments

Comments
 (0)