Bug #66276 [NEW]: Missing HTTP headers on CORE_ERROR output of php54.cgi

From: Date: Thu, 12 Dec 2013 15:23:52 +0000
Subject: Bug #66276 [NEW]: Missing HTTP headers on CORE_ERROR output of php54.cgi
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183265@lists.php.net to get a copy of this message
From: dave at icdsoft dot com Operating system: Linux PHP version: 5.4.22 Package: Apache related Bug Type: Bug Bug description:Missing HTTP headers on CORE_ERROR output of php54.cgi Description: ------------ The error handling of php54.cgi does not submit HTTP headers in some cases. This causes Internal Server Error 500 in Apache. $ php54.cgi <test.php <br /> <b>Fatal error</b>: Directive 'magic_quotes_gpc' is no longer available in PHP in <b>Unknown</b> on line <b>0</b><br /> For other errors the headers are ok $ php54.cgi <test.php X-Powered-By: PHP/5.4.22 Content-type: text/html <br /> <b>Parse error</b>: syntax error, unexpected 'df' (T_STRING) in <b>-</b> on line <b>3</b><br /> Test script: --------------- $ cat test.php <?php phpinfo(); ?> $ cat php.ini register_globals = on Expected result: ---------------- X-Powered-By: PHP/5.4.22 Content-type: text/html <br /> <b>Fatal error</b>: Directive 'magic_quotes_gpc' is no longer available in PHP in <b>Unknown</b> on line <b>0</b><br /> Actual result: -------------- <br /> <b>Fatal error</b>: Directive 'magic_quotes_gpc' is no longer available in PHP in <b>Unknown</b> on line <b>0</b><br /> -- Edit bug report at https://bugs.php.net/bug.php?id=66276&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66276&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66276&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66276&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=66276&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=66276&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=66276&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=66276&r=needscript Try newer version: https://bugs.php.net/fix.php?id=66276&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=66276&r=support Expected behavior: https://bugs.php.net/fix.php?id=66276&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=66276&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=66276&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=66276&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66276&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=66276&r=dst IIS Stability: https://bugs.php.net/fix.php?id=66276&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=66276&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=66276&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=66276&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=66276&r=mysqlcfg

« previous php.bugs (#183265) next »