cvs: php-src /ext/pcntl pcntl.c
| From: | Ilia Alshanetsky | Date: | Tue, 27 Nov 2007 17:13:31 +0000 |
| Subject: | cvs: php-src /ext/pcntl pcntl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-47331@lists.php.net to get a copy of this message | ||
iliaa Tue Nov 27 17:13:31 2007 UTC
Modified files:
/php-src/ext/pcntl pcntl.c
Log:
MFB: Fixed bug #43373 (pcntl_fork() should not raise E_ERROR on error)
http://cvs.php.net/viewvc.cgi/php-src/ext/pcntl/pcntl.c?r1=1.58&r2=1.59&diff_format=u
Index: php-src/ext/pcntl/pcntl.c
diff -u php-src/ext/pcntl/pcntl.c:1.58 php-src/ext/pcntl/pcntl.c:1.59
--- php-src/ext/pcntl/pcntl.c:1.58 Thu Sep 27 18:28:40 2007
+++ php-src/ext/pcntl/pcntl.c Tue Nov 27 17:13:31 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pcntl.c,v 1.58 2007/09/27 18:28:40 dmitry Exp $ */
+/* $Id: pcntl.c,v 1.59 2007/11/27 17:13:31 iliaa Exp $ */
#define PCNTL_DEBUG 0
@@ -225,7 +225,7 @@
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);