From: john at jelsoft dot com Operating system: Linux PHP version: 4CVS-2005-01-21 (stable) PHP Bug Type: Apache2 related Bug description: apache_lookup_uri prevents further headers from being sent
Description: ------------ Any calls to the header() function after apache_lookup_uri() is called are not processed properly, so that the headers are not sent. Running 4.3.11-dev, build date Jan 16 2005 16:25:34 Save the following in test.php: Reproduce code: --------------- <?php header( "X-John: test1" ); apache_lookup_uri( 'test.php' ); header( "X-John2: test2" ); echo "hello"; ?> Expected result: ---------------- The header X-John2: test2 to be sent. Actual result: -------------- It's not sent, while X-John: test is sent. -- Edit bug report at http://bugs.php.net/?id=31645&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31645&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31645&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31645&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31645&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31645&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31645&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31645&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31645&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31645&r=support Expected behavior: http://bugs.php.net/fix.php?id=31645&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31645&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31645&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31645&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31645&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31645&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31645&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31645&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31645&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=31645&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=31645&r=mysqlcfg