#22440 [Csd->Bgs]: Bug with cookie in CGI not in ISAPI

From: Date: Mon, 19 May 2003 03:46:58 +0000
Subject: #22440 [Csd->Bgs]: Bug with cookie in CGI not in ISAPI
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39926@lists.php.net to get a copy of this message
ID: 22440 Updated by: shane@php.net Reported By: garfield_fr at tiscali dot fr -Status: Closed +Status: Bogus Bug Type: CGI related Operating System: Windows 2000 pro SP3 PHP Version: 4.3.2-dev New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php I don't know how it could have been 'fixed', this is an IIS issue due to MS's interpretation of the CGI spec and nothing we can do about it. It has been this way forever. As was posted before, you can see details at http://support.microsoft.com/default.aspx?scid=KB;en-us;q176113 Previous Comments: ------------------------------------------------------------------------ [2003-05-18 22:46:51] shane@php.net Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php I don't know how it could have been 'fixed', this is an IIS issue due to MS's interpretation of the CGI spec and nothing we can do about it. It has been this way forever. As was posted before, you can see details at http://support.microsoft.com/default.aspx?scid=KB;en-us;q176113 ------------------------------------------------------------------------ [2003-05-04 10:59:02] garfield_fr at tiscali dot fr I try with PHP 4.3.2 RC3 dev build date May 4 2003 10:14:20 The bug is still here !! ------------------------------------------------------------------------ [2003-05-01 20:21:10] sniper@php.net This bug has been fixed in CVS. In case this was a PHP problem, snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. In case this was a documentation problem, the fix will show up soon at http://www.php.net/manual/. In case this was a PHP.net website problem, the change will show up on the PHP.net site and on the mirror sites in short time. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2003-03-30 18:43:28] garfield_fr at tiscali dot fr this is a little page to test the bug : if no cookie are set, click on "setCookie and header" link to set the cookie and redirect to other... cookie are not set !! tested with PHP Version : 4.3.2-RC Build Date : Mar 30 2003 09:11:32 <?php function SetTheCookie(){ setcookie("test","TestValue"); } function set_redir(){ SetTheCookie(); header("Location: ".$_SERVER['PHP_SELF']."?op=other"); } function delcookie(){ setcookie("test",""); } ?> <html> <head></head> <body> Test SetCookie function with Header("Location: ....") function...<br> <a href="<?= $PHP_SELF; ?>?op=set">just setCookie</a><br/> <a href="<?= $PHP_SELF; ?>?op=set_redir">setCookie and header("location:...")</a><br/> <a href="<?= $PHP_SELF; ?>?op=delcookie">delete cookie("location:...")</a><br/> <?php echo "\$_GET : <br><xm>";var_dump($_GET);echo "</xmp><br>"; $op = $_GET['op']; switch ($op){ case "set" : SetTheCookie(); break; case "set_redir" : set_redir(); break; case "delcookie" : delcookie(); break; } echo "\$_COOKIE : <br><xm>";var_dump($_COOKIE);echo "</xmp><br>"; ?> </body> </html> ------------------------------------------------------------------------ [2003-03-30 17:41:56] garfield_fr at tiscali dot fr I try using last CVS snapshot (30 mar 2003). bug is still here !! setcookie() with header("location: ...") doesn't work ...(test with phpnuke 6.0.17, in login page) ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/22440 -- Edit this bug report at http://bugs.php.net/?id=22440&edit=1

« previous php.bugs (#39926) next »