ID:               35523
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bugs dot php dot net at honeypot-1 dot dnsalias dot
                   net
-Status:           Open
+Status:           Bogus
 Bug Type:         HTTP related
 Operating System: Linux 2.4
 PHP Version:      4.4.1
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.




Previous Comments:
------------------------------------------------------------------------

[2005-12-02 17:54:59] judas at dotgeek dot org

Also reproducible using PHP 5.1.2-dev (latest CVS)

------------------------------------------------------------------------

[2005-12-02 17:04:54] bugs dot php dot net at honeypot-1 dot dnsalias
dot net

Description:
------------
As far as I know (Netscape specification) cookies are allowed to
contain the '+'-character. Up to and including PHP 4.4.0 this is the
way they were handled. But with PHP 4.4.1 pluses in the cookie value
are replaced by a single space, like in values of GET-parameters.

Reproduce code:
---------------
// run twice

header('Set-Cookie: my_cookie=ABC+DEF');
phpinfo();

Expected result:
----------------
// as up to 4.4.0

_REQUEST['my_cookie']  ==           'ABC+DEF';
_COOKIE['my_cookie']   ==           'ABC+DEF';
_SERVER["HTTP_COOKIE"] == 'my_cookie=ABC+DEF';

Actual result:
--------------
_REQUEST['my_cookie']  ==           'ABC DEF';
_COOKIE['my_cookie']   ==           'ABC DEF';
_SERVER["HTTP_COOKIE"] == 'my_cookie=ABC+DEF';


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35523&edit=1

Reply via email to