#31645 [Fbk->Opn]: apache_lookup_uri prevents further headers from being sent
| From: | john at jelsoft dot com | Date: | Sat, 22 Jan 2005 11:21:01 +0000 |
| Subject: | #31645 [Fbk->Opn]: apache_lookup_uri prevents further headers from being sent | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-72655@lists.php.net to get a copy of this message | ||
ID: 31645
User updated by: john at jelsoft dot com
Reported By: john at jelsoft dot com
-Status: Feedback
+Status: Open
Bug Type: Apache2 related
Operating System: Linux
PHP Version: 4CVS-2005-01-21 (stable)
New Comment:
From my phpinfo, from the 'Loaded modules' section of apache2handler,
it has sapi_apache2. Also listed in the modules section is worker.
PHP's server API is reported as Apache 2.0 Handler. Is that the
information you're after?
Thanks!
Previous Comments:
------------------------------------------------------------------------
[2005-01-22 01:12:16] sniper@php.net
What Apache SAPI are you using?
------------------------------------------------------------------------
[2005-01-21 19:25:10] john at jelsoft dot com
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 this bug report at http://bugs.php.net/?id=31645&edit=1