From: Ilia Alshanetsky Date: Tue, 27 Nov 2007 17:13:18 +0000 (+0000) Subject: Fixed bug #43373 (pcntl_fork() should not raise E_ERROR on error) X-Git-Tag: RELEASE_1_3_1~566 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=674081da93ca018a925e6be0172dc00ba6156f6b;p=php Fixed bug #43373 (pcntl_fork() should not raise E_ERROR on error) --- diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index 72492d5c9a..5ed244b70e 100755 --- a/ext/pcntl/pcntl.c +++ b/ext/pcntl/pcntl.c @@ -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);