From: [EMAIL PROTECTED]
Operating system: RedHat 7.2 (kernel 2.4.18)
PHP version: 4.2.0
PHP Bug Type: Apache2 related
Bug description: Only last cookie set
With Apache 2.0.35 and PHP 4.2.0RC4, only the last cookie
seems to get set.
Here is the PHP source I used for testing:
<?php
setcookie ('first_name', 'Svein', 0, '/');
setcookie ('last_name', 'Olav', 0, '/');
echo "<html><head></head><body>" .
"<h1>Cookie test page</h1>\n";
while (list ($var,$val) = each ($HTTP_COOKIE_VARS)) {
echo "Set-Cookie: $var=$val <br>\n";
}
echo "</body></html>";
?>
This script can be tested via the following URL:
https://bjerkeset.dns2go.com/php/cookie.php
PHP was configured like this:
./configure \
--prefix=/opt/php \
--with-mysql=/opt/mysql \
--with-config-file-path=/etc/opt/apache2 \
--enable-track-vars \
--enable-force-cgi-redirect \
--with-gettext \
--with-apxs2=/opt/apache2/bin/apxs
Svein Olav Bjerkeset
--
Edit bug report at http://bugs.php.net/?id=16626&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16626&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16626&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16626&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16626&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16626&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16626&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16626&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16626&r=submittedtwice