From: lee at ricis dot com Operating system: Windows 2000 Server PHP version: 4.3.0 PHP Bug Type: IIS related Bug description: setcookie() only sets last call
assume the following script: <?php $timer = time() + 3600; header('Set-Cookie: USERID=asdfasdf; expires=' . $timer . '; path=/'); header('Set-Cookie: USERHASH=asd3423423; expires=' . $timer . '; path=/'); ?> php 4.2.3, php 4.3.0, and php 4.3.1 (all on IIS 5.0 on windows 2000 server) all set the USERHASH cookie, but never the USERID cookie. when running this script on Apache 1.3.x and php 4.2.3 on suse linux 8.0 pro, USERID and USERHASH cookies are set. i thought this was fixed with bug #18168 -- Edit bug report at http://bugs.php.net/?id=22307&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22307&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22307&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22307&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22307&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22307&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22307&r=support Expected behavior: http://bugs.php.net/fix.php?id=22307&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22307&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22307&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22307&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22307&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22307&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22307&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22307&r=gnused