cvs: php4(PHP_4_3) /main main.c
| From: | Jani Taskinen | Date: | Wed, 19 Mar 2003 08:22:36 +0000 |
| Subject: | cvs: php4(PHP_4_3) /main main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-19687@lists.php.net to get a copy of this message | ||
sniper Wed Mar 19 03:22:36 2003 EDT
Modified files: (Branch: PHP_4_3)
/php4/main main.c
Log:
MFH: Fixed bug #22775 (Fatal errors exit with status 0 with CGI/CLI)
Index: php4/main/main.c
diff -u php4/main/main.c:1.512.2.19 php4/main/main.c:1.512.2.20
--- php4/main/main.c:1.512.2.19 Tue Mar 18 17:43:00 2003
+++ php4/main/main.c Wed Mar 19 03:22:35 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: main.c,v 1.512.2.19 2003/03/18 22:43:00 helly Exp $ */
+/* $Id: main.c,v 1.512.2.20 2003/03/19 08:22:35 sniper Exp $ */
/* {{{ includes
*/
@@ -717,6 +717,7 @@
/*case E_PARSE: the parser would return 1 (failure), we can bail out nicely */
case E_COMPILE_ERROR:
case E_USER_ERROR:
+ EG(exit_status) = 255;
if (module_initialized) {
zend_bailout();
efree(buffer);