summaryrefslogtreecommitdiff
path: root/ext/pcntl
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2007-11-27 17:13:18 +0000
committerIlia Alshanetsky <iliaa@php.net>2007-11-27 17:13:18 +0000
commit674081da93ca018a925e6be0172dc00ba6156f6b (patch)
treec4bb5edbd68395dc91f77e795d7476e85b2d504d /ext/pcntl
parentd5acf6ad81b06781f053a3dcbdf78bbba81f62de (diff)
downloadphp-git-674081da93ca018a925e6be0172dc00ba6156f6b.tar.gz
Fixed bug #43373 (pcntl_fork() should not raise E_ERROR on error)
Diffstat (limited to 'ext/pcntl')
-rwxr-xr-xext/pcntl/pcntl.c2
1 files changed, 1 insertions, 1 deletions
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);