From: calin dot brandabur at mobilesolutions dot ro Operating system: windows server 2003 PHP version: 4.3.2 PHP Bug Type: Apache2 related Bug description: cookies not assigned - at all
Description: ------------ i installed apache 2.0.46 and php 4.3.2 and the cookies are no longer working... at all see http://test.mobilesolutions.ro (win2k3 server) and http://new.v2r.ag/cookie (linux server with older version of php/apache) Reproduce code: --------------- <? if(!$username) { $username = "user"; $password = "pass"; $cookie_expire = "01/01/2099"; setcookie ("username", $username, $cookie_expire); setcookie ("password", $password, $cookie_expire); echo "<b>cookie set</b><br><br>"; } else { echo "<b>cookie found</b><br><br>"; } echo "<b>cookie info</b><br>username:{$username}<br>password:{$password}"; ?> Expected result: ---------------- First run: cookie set cookie info username:user password:pass Second run: cookie set cookie info username:user password:pass Actual result: -------------- Every run: cookie set cookie info username:user password:pass -- Edit bug report at http://bugs.php.net/?id=24357&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24357&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24357&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24357&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24357&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24357&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24357&r=support Expected behavior: http://bugs.php.net/fix.php?id=24357&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24357&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24357&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24357&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24357&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24357&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24357&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24357&r=gnused