dmitry Thu Oct 18 13:11:30 2007 UTC Modified files: (Branch: PHP_5_2) /php-src/main main.c Log: Fixed bug #42722 (display_errors setting ignored for E_PARSE and HTTP 500 page) http://cvs.php.net/viewvc.cgi/php-src/main/main.c?r1=1.640.2.23.2.58&r2=1.640.2.23.2.59&diff_format=u Index: php-src/main/main.c diff -u php-src/main/main.c:1.640.2.23.2.58 php-src/main/main.c:1.640.2.23.2.59 --- php-src/main/main.c:1.640.2.23.2.58 Mon Oct 1 14:53:01 2007 +++ php-src/main/main.c Thu Oct 18 13:11:30 2007 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: main.c,v 1.640.2.23.2.58 2007/10/01 14:53:01 iliaa Exp $ */ +/* $Id: main.c,v 1.640.2.23.2.59 2007/10/18 13:11:30 dmitry Exp $ */ /* {{{ includes */ @@ -973,7 +973,8 @@ case E_USER_ERROR: EG(exit_status) = 255; if (module_initialized) { - if (!SG(headers_sent) && + if (!PG(display_errors) && + !SG(headers_sent) && SG(sapi_headers).http_response_code == 200 ) { sapi_header_line ctr = {0};
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php