#44804 [Ver->WFx]: setrawcookie('test', '') sets value as "deleted" instead of empty
| From: | iliaa@php.net | Date: | Mon, 28 Apr 2008 23:19:03 +0000 |
| Subject: | #44804 [Ver->WFx]: setrawcookie('test', '') sets value as "deleted" instead of empty | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-124570@lists.php.net to get a copy of this message | ||
ID: 44804
Updated by: iliaa@php.net
Reported By: oliver at netconcepts dot com
-Status: Verified
+Status: Wont fix
Bug Type: HTTP related
Operating System: *
PHP Version: 5.2CVS,5.3CVS (2008-04-24)
New Comment:
A fix would be a massive BC break since many applications rely on ""
value resulting in cookie deletion.
Previous Comments:
------------------------------------------------------------------------
[2008-04-23 01:19:36] oliver at netconcepts dot com
Description:
------------
the setrawcookie function doesn't set an empty value but sets the value
'deleted' instead.
An empty value is perfectly fine in a cookie, there is no need to
modify that value in any way.
This bug is the same for PHP 4.3.1, and it was never solved?
http://bugs.php.net/bug.php?id=33526&edit=2
Reproduce code:
---------------
setrawcookie('testcookie', '');
Expected result:
----------------
(Firefox Live HTTP Headers output)
Set-Cookie: testcookie=
Actual result:
--------------
(Firefox Live HTTP Headers output)
Set-Cookie: testcookie=deleted
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44804&edit=1