From:             [EMAIL PROTECTED]
Operating system: FreeBSD 4.5-RELEASE
PHP version:      4.2.1
PHP Bug Type:     HTTP related
Bug description:  setcookie only registering once

'./configure' '--with-apxs2=/usr/local/sbin/apxs' '--with-
tsrm-pth' '--with-config-file-path=/usr/local/etc' '--
enable-versioning' '--with-regex=system' '--without-gd' '--
without-mysql' '--with-gd=/usr/local' '--enable-gd-native-
ttf' '--with-freetype-dir=/usr/local' '--with-jpeg-dir=/
usr/local' '--with-png-dir=/usr/local' '--with-zlib' '--
with-pgsql=/usr/local' '--enable-ftp' '--with-curl=/usr/
local' '--prefix=/usr/local' 'i386-portbld-freebsd4.5'
---------------

When doing the following test:
<snip>
<?
setcookie("a", "a123");
setcookie("b", "b623");
setcookie("c", "c233");
setcookie("d", "d143");
?>

<a href="p2.php">Page 2</a>
</snip>

and viewing the page:

<snip>
<?
echo $HTTP_COOKIE_VARS["a"]."<br>";
echo $HTTP_COOKIE_VARS["b"]."<br>";
echo $HTTP_COOKIE_VARS["c"]."<br>";
echo $HTTP_COOKIE_VARS["d"]."<br>";
?>
<a href="p1.php">Page 1</a>
</snip>

only the last cookie is echo'ed. When running on php 4.1.1 
all four cookies are echo'ed. When looking in my cookies 
folder only one cookie has been set.




-- 
Edit bug report at http://bugs.php.net/?id=17410&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17410&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17410&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17410&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17410&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17410&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17410&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17410&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17410&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17410&r=globals

Reply via email to