]> granicus.if.org Git - php/commit
Fix #67131: setcookie() conditional for empty values not met
authorChristoph M. Becker <cmb@php.net>
Mon, 24 Aug 2015 21:03:50 +0000 (23:03 +0200)
committerChristoph M. Becker <cmb@php.net>
Mon, 24 Aug 2015 21:03:50 +0000 (23:03 +0200)
commitfc203fa37eb0454c94e7e30f3b4e5fc81b699699
tree151ba898bb888bacaeada5c8b5b320cc36257a99
parent78b2b1d6f74705d7835bf34297c2c6c78b2d0601
Fix #67131: setcookie() conditional for empty values not met

PHP applies a workaround for old MSIE where setting an empty cookie value would
not delete the cookie. This workaround is only triggered if an empty string (or
a value that converts to an empty string) is actually given as $value parameter
of setcookie. If the $value parameter is omitted, an empty cookie value is
sent. This commit fixes the inconsistent behavior.
ext/standard/head.c
ext/standard/tests/network/setcookie.phpt