Bug #14571: setcookie behavoir changed in 4.1 from previous versions

From: Date: Tue, 18 Dec 2001 02:36:36 +0000
Subject: Bug #14571: setcookie behavoir changed in 4.1 from previous versions
Groups: php.dev php.doc 
Request: Send a blank email to php-dev+get-74214@lists.php.net to get a copy of this message
From: smclean@scoreinfo.tv Operating system: Linux PHP version: 4.1.0 PHP Bug Type: Documentation problem Bug description: setcookie behavoir changed in 4.1 from previous versions The behavoir of the setcookie function changed in 4.1.0 even though no such change was documented in the changelog. This had the effect of disabling an application of mine until I figured out what happened. In PHP <4.1.0, the code: setcookie("cookiename",""); would delete the cookie 'cookiename'. In PHP 4.1.0, this function created a cookie with a null value named cookiename. I know this is a rather silly change, and you wouldn't expect someone to ever specify a blank value in the second argument, but it did cause a short downtime in our website software. I posted this on the setcookie() manual page but it was rejected on grounds that it was more of a bug report than anything, so I thought I'd post it here. Thanks Sean -- Edit bug report at: http://bugs.php.net/?id=14571&edit=1

« previous php.dev (#74214) next »