php.net |  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
 [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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-16 12:55 UTC] 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.
 [2002-06-18 18:47 UTC] sniper@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 08:01:28 2024 UTC