From: Ilia Alshanetsky Date: Tue, 27 Nov 2007 17:14:27 +0000 (+0000) Subject: MFB: Fixed bug #43373 (pcntl_fork() should not raise E_ERROR on error) X-Git-Tag: php-5.2.6RC1~283 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1407d3709af7ec3155134b115b34b481bb6574a;p=php MFB: Fixed bug #43373 (pcntl_fork() should not raise E_ERROR on error) --- diff --git a/NEWS b/NEWS index 19e1ff5ed3..342c08f832 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,7 @@ PHP NEWS ?? ??? 2008, PHP 5.2.6 - Fixed bug #43386 (array_globals not reset to 0 properly on init). (Ilia) - Fixed bug #43377 (PHP crashes with invalid argument for DateTimeZone). (Ilia) +- Fixed bug #43373 (pcntl_fork() should not raise E_ERROR on error). (Ilia) - Fixed bug #43092 (curl_copy_handle() crashes with > 32 chars long URL). (Jani) - Fixed bug #43301 (mb_ereg*_replace() crashes when replacement string is diff --git a/ext/pcntl/pcntl.c b/ext/pcntl/pcntl.c index 233e20f6cb..6188d0e54c 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);