Bug #16803 Updated: Using header() to set multiple cookies only sets the last cookie.

From: Date: Thu, 20 Jun 2002 14:03:46 +0000
Subject: Bug #16803 Updated: Using header() to set multiple cookies only sets the last cookie.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-11566@lists.php.net to get a copy of this message
ID: 16803 Updated by: red@tripany.com Reported By: cabel-s@panic.com Status: Bogus Bug Type: Apache2 related Operating System: RedHat 7.2 PHP Version: 4.2.0 New Comment: Well after extensive testing, I have to conclude it's probably not a php (alone) problem. I have tried: PHP ver. Apache ver. --enable-so works? error --------------------------------------------------------- 4.2.1 2.0.39 yes no yes 2.1 36 yes yes no 2.0 39 yes no yes 2.0 36 no no yes 2.0 36 yes yes no 4.0.3pl1 1.3.9 ? yes ? (4.0.3pl1 is the standard debian package) The rest of the 2.1 installations (with apache 39) don't work and give errors, so there's some problem with the apxs interaction between php and httpd 2.0.39. As php2.1.0 works with httpd 2.0.36 I'm now assuming there was a change in the apxs of apache in the security fix version which renders the multiple cookies unwriteable. I'll send this off to apache as well. Cheers Robin Previous Comments: ------------------------------------------------------------------------ [2002-06-20 07:52:21] red@tripany.com PS I get the same make error when installing php4.2.0 and removing line 93 from php_functions.c (it's the boundary function again) finishes the install. Under 4.2.0, I get the same behaviour, so maybe it is apache? ------------------------------------------------------------------------ [2002-04-30 15:26:26] jimw@php.net read the documentation for header(). it replaces headers with the same name unless you tell it otherwise. (the issue with setcookie() probably could very well be a bug, but we've got #16626 to track that.) ------------------------------------------------------------------------ [2002-04-30 14:09:57] kala@pinerecords.com Hi, just wondering.. is anyone working on a fix at all? I understand this is a rather critical issue. Thanks, Tom ------------------------------------------------------------------------ [2002-04-24 19:26:34] cabel-s@panic.com Hello! Thanks for your note -- of course I searched first! :) As I say first in my notes, bug #16626 is very similar and may even be the same problem -- it details problems using setcookie() -- but I thought filing this bug would be helpful because it details that the problem also exists with header(), not just setcookie(). Is that not helpful for you guys? If so, let me know, and I'll close this. I searched for all "open" bugs with the string "header", and with PHP version 4.2.0 (since this relates to Apache 2), and found nothing. I'm sorry -- if this IS truly a duplicate bug, I am unable to find its friends right away, but I will keep looking! If I find something, I'll mark it duplicate. ------------------------------------------------------------------------ [2002-04-24 19:17:57] yohgaki@php.net Please _search_ bug db first. There are sevral reports for this. I appreciate if you could search and comment bug # that is active for this bug, then change status to Duplicate. Thank you. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/16803 -- Edit this bug report at http://bugs.php.net/?id=16803&edit=1

« previous php.bugs (#11566) next »