#19028 [Dup->Csd]: setcookie() only works once per script
| From: | kalowsky@php.net | Date: | Wed, 21 Aug 2002 21:55:07 +0000 |
| Subject: | #19028 [Dup->Csd]: setcookie() only works once per script | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17482@lists.php.net to get a copy of this message | ||
ID: 19028
Updated by: kalowsky@php.net
Reported By: daniel@kewlio.net
-Status: Duplicate
+Status: Closed
Bug Type: Output Control
Operating System: FreeBSD 4.6-PRERELEASE
PHP Version: 4.2.2
New Comment:
if it's fixed, it must be closed :)
Previous Comments:
------------------------------------------------------------------------
[2002-08-21 17:47:22] rasmus@php.net
Known bug in 4.2 against Apache 2. Fixed in CVS.
------------------------------------------------------------------------
[2002-08-21 17:45:55] daniel@kewlio.net
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 this bug report at http://bugs.php.net/?id=19028&edit=1