Edit report at https://bugs.php.net/bug.php?id=62039&edit=1

 ID:                 62039
 Updated by:         s...@php.net
 Reported by:        laurent dot perez at backelite dot com
 Summary:            When multiple cookies are received, $Version=0 is
                     badly concatened
-Status:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            HTTP related
-Operating System:   PHP 5.3.6-13ubuntu3.7
+Operating System:   Linux
-PHP Version:        master-Git-2012-05-15 (Git)
+PHP Version:        PHP 5.3.6-13ubuntu3.7
 Block user comment: N
 Private report:     N

 New Comment:

Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

Please reopen if it occurs in a recent version of PHP.


Previous Comments:
------------------------------------------------------------------------
[2012-05-15 16:11:11] laurent dot perez at backelite dot com

Description:
------------
Hi

I'm sending the following cookies to a PHP 5.3.6-13ubuntu3.7 page :

>> "Cookie: $Version=0; applicookie=monappli[\r][\n]"
>> "Cookie: $Version=0; monautrecookie=autrevaleur[\r][\n]"

When I dump them using print_r($_COOKIE);, the value of the first one 
(applicookie) gets concatenated with a comma plus $Version=0 string :

<< "    [applicookie] => monappli, $Version=0[\n]"
<< "    [monautrecookie] => autrevaleur[\n]"

It looks like a concatenation bug. The value of applicookie should not be 
modified.


Test script:
---------------
Get Firebug, install Firecookie, forge two cookies as HttpOnly, send them, <?php
print_r($_COOKIE);
?> will display a wrong value for the first one received.

Expected result:
----------------
Unmodified cookie values

Actual result:
--------------
The first cookie value gets concatenated with comma + $Version=0 string


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



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

Reply via email to