cvs: php-src(PHP_5_3) /ext/pcntl pcntl.c
| From: | Ilia Alshanetsky | Date: | Tue, 27 Nov 2007 17:13:18 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/pcntl pcntl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-47330@lists.php.net to get a copy of this message | ||
iliaa Tue Nov 27 17:13:18 2007 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/pcntl pcntl.c
Log:
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.48.2.2.2.4.2.1&r2=1.48.2.2.2.4.2.2&diff_format=u
Index: php-src/ext/pcntl/pcntl.c
diff -u php-src/ext/pcntl/pcntl.c:1.48.2.2.2.4.2.1 php-src/ext/pcntl/pcntl.c:1.48.2.2.2.4.2.2
--- php-src/ext/pcntl/pcntl.c:1.48.2.2.2.4.2.1 Thu Sep 27 18:00:42 2007
+++ php-src/ext/pcntl/pcntl.c Tue Nov 27 17:13:18 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pcntl.c,v 1.48.2.2.2.4.2.1 2007/09/27 18:00:42 dmitry Exp $ */
+/* $Id: pcntl.c,v 1.48.2.2.2.4.2.2 2007/11/27 17:13:18 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);