Bug #12796: Incorrect handling of header sending

From: Date: Thu, 16 Aug 2001 16:24:36 +0000
Subject: Bug #12796: Incorrect handling of header sending
Groups: php.dev 
Request: Send a blank email to php-dev+get-63437@lists.php.net to get a copy of this message
From: aldem-php@aldem.net Operating system: All PHP version: 4.0.6 PHP Bug Type: Other web server Bug description: Incorrect handling of header sending 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 bug report at: http://bugs.php.net/?id=12796&edit=1

« previous php.dev (#63437) next »