MFB: Fixed bug #43373 (pcntl_fork() should not raise E_ERROR on error)

This commit is contained in:
Ilia Alshanetsky 2007-11-27 17:13:31 +00:00
parent 83cfd0ce0e
commit 78fadae2ce

View File

@ -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);