#19028 [NEW]: setcookie() only works once per script
| From: | daniel at kewlio dot net | Date: | Wed, 21 Aug 2002 21:45:56 +0000 |
| Subject: | #19028 [NEW]: setcookie() only works once per script | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-17480@lists.php.net to get a copy of this message | ||
From: daniel@kewlio.net
Operating system: FreeBSD 4.6-PRERELEASE
PHP version: 4.2.2
PHP Bug Type: Output Control
Bug description: setcookie() only works once per script
setcookie() in PHP4.2.1 and PHP4.2.2 seems to only set 1 cookie per
script.
fixed by changing main/SAPI.h, line 138, character 75 from "1" to "0"
(zero) in php-4.2.2 release code.
It seems to pick up the cookie as a normal header and doesnt allow it to
be duplicated.
Configure:
'./configure' '--with-jpeg=/usr/local' '--with-ndbm'
'--enable-ftp'
'--enable-gd-imgstrttf' '--with-freetype-dir=/usr/local/include/freetype2'
'--with-gd=/usr/local' '--with-jpeg-dir=/root/compile/jpeg-6b'
'--with-xpm-dir=/usr/X11R6' '--with-tiff-dir=/usr/local' '--with-ttf'
'--with-t1lib=/root/compile/T1-1.0.1'
'--with-imap=/root/compile/imap-2001a/c-client' '--with-png-dir'
'--enable-ucd-snmp-hack' '--enable-sockets' '--enable-sysvsem'
'--enable-sysvshm' '--with-zlib-dir=/usr/local'
'--with-zlib=/usr/local'
'--with-openssl' '--with-mysql=/usr/local/mysql' '--with-pdflib'
'--with-gettext' '--with-png-dir' '--with-tsrm-pth'
'--with-apxs2=/usr/local/apache2/bin/apxs'
FreeBSD 4.6-PRERELEASE, PHP-4.2.1&4.2.2, Apache 2.0.39
With Thanks,
Daniel Austin,
Managing Director,
kewlio.net Limited.
<daniel@kewlio.net>
--
Edit bug report at http://bugs.php.net/?id=19028&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19028&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19028&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19028&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19028&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19028&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19028&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19028&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19028&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19028&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19028&r=globals