Bug #67131 [NEW]: setcookie() conditional for empty values not met

From: Date: Fri, 25 Apr 2014 05:11:57 +0000
Subject: Bug #67131 [NEW]: setcookie() conditional for empty values not met
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185428@lists.php.net to get a copy of this message
From: jpingel at bitpiston dot com Operating system: Ubuntu 14.04 x64 PHP version: 5.5.11 Package: HTTP related Bug Type: Bug Bug description:setcookie() conditional for empty values not met Description: ------------ The conditional to check for an empty value when using setcookie() to work around old versions of MSIE not deleting a cookie never seems to be met: https://github.com/php/php-src/blob/php-5.5.11/ext/standard/head.c#L113 Currently the setcookie() tests pass as it appears that it was never taken into consideration on the first test: https://github.com/php/php-src/blob/php-5.5.11/ext/standard/tests/network/setcookie.phpt#L8 value && value_len == 0 this should probably be: value == NULL || value_len == 0 -- Edit bug report at https://bugs.php.net/bug.php?id=67131&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67131&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67131&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67131&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=67131&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=67131&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=67131&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=67131&r=needscript Try newer version: https://bugs.php.net/fix.php?id=67131&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=67131&r=support Expected behavior: https://bugs.php.net/fix.php?id=67131&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=67131&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=67131&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=67131&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67131&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=67131&r=dst IIS Stability: https://bugs.php.net/fix.php?id=67131&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=67131&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=67131&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=67131&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=67131&r=mysqlcfg

« previous php.bugs (#185428) next »