|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12796 Incorrect handling of header sending
Submitted: 2001-08-16 12:24 UTC Modified: 2002-06-18 18:47 UTC
From: aldem-php at aldem dot net Assigned:
Status: Closed Package: Other web server
PHP Version: 4.0.6 OS: All
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: aldem-php at aldem dot net
New email:
PHP Version: OS:


 [2001-08-16 12:24 UTC] aldem-php at aldem dot 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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-16 12:55 UTC]

adding your info to the mentioned PR, I'll mark this one as duplicate.
 [2002-06-18 18:47 UTC]
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at In case this was a documentation 
problem, the fix will show up soon at
In case this was a website problem, the change will show
up on the site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Mar 03 08:01:29 2024 UTC