From: [EMAIL PROTECTED] Operating system: Windows XP PHP version: 4.2.3 PHP Bug Type: HTTP related Bug description: Buffering Prevents setcookie()
I just went from PHP 4.1.2 to 4.2.3, and after some investigation, found that setcookie would absolutely not set cookies. So I wrote a test script to flip a cookie value each time you reloaded the script. But it worked just fine. I investigated some more. Totally confused, I wrote a script to flip a cookie again, but this time it didn't work. It turned out that if I setcookie() after sending non-header data, that the cookie never showed up. I remembered that previously I would get a header error, and also remembered that in the PHP.INI that came with the new php, they had enabled output buffering. Changing the buffering settings seems to makes no difference. My PHP Build was just one downloaded from the php.net downloads page, nothing special about it. -- Edit bug report at http://bugs.php.net/?id=20923&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20923&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20923&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20923&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20923&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20923&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20923&r=support Expected behavior: http://bugs.php.net/fix.php?id=20923&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20923&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20923&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20923&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20923&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20923&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20923&r=isapi