php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19028 setcookie() only works once per script
Submitted: 2002-08-21 17:45 UTC Modified: 2002-08-21 17:55 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: daniel at kewlio dot net Assigned:
Status: Closed Package: Output Control
PHP Version: 4.2.2 OS: FreeBSD 4.6-PRERELEASE
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: daniel at kewlio dot net
New email:
PHP Version: OS:

 

 [2002-08-21 17:45 UTC] daniel at kewlio dot 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>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-21 17:47 UTC] rasmus@php.net
Known bug in 4.2 against Apache 2.  Fixed in CVS.
 [2002-08-21 17:55 UTC] kalowsky@php.net
if it's fixed, it must be closed :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 12:01:31 2024 UTC