Bug #12796 Updated: Incorrect handling of header sending
| From: | sniper@php.net | Date: | Tue, 18 Jun 2002 22:47:03 +0000 |
| Subject: | Bug #12796 Updated: Incorrect handling of header sending | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-11248@lists.php.net to get a copy of this message | ||
ID: 12796
Updated by: sniper@php.net
Reported By: aldem-php@aldem.net
-Status: Duplicate
+Status: Closed
Bug Type: Other web server
Operating System: All
PHP Version: 4.0.6
New Comment:
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a
documentation
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2001-08-16 12:55:37] cynic@php.net
http://www.php.net/bugs.php?id=5653
adding your info to the mentioned PR, I'll mark this one as duplicate.
------------------------------------------------------------------------
[2001-08-16 12:24:36] aldem-php@aldem.net
There is small problem in Roxen's SAPI, which arises when duplicate
headers are sent out. While playing with some PHP apps with Roxen, I
found that regardless how many cookies are set in PHP code, only one is
sent to the browser.
Investigation shows that Roxen's SAPI uses Pike's type "mapping" to
send headers, which (of course) doesn't allow duplicate headers (in my
case "Set-Cookie") to be sent, i.e. only last one is sent, since
subsequesnt calls to set header with the same name will replace
previous.
Proposed solution: use array instead of mapping. It will require
changes in Roxen module as well, of course, but this should not be
difficult.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=12796&edit=1