#41359 [Opn->Bgs]: wddx_deserialize does not deserialize char codes >= 192
| From: | tony2001@php.net | Date: | Thu, 10 May 2007 20:26:03 +0000 |
| Subject: | #41359 [Opn->Bgs]: wddx_deserialize does not deserialize char codes >= 192 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-112507@lists.php.net to get a copy of this message | ||
ID: 41359
Updated by: tony2001@php.net
Reported By: tim at whiteinteractive dot com
-Status: Open
+Status: Bogus
Bug Type: WDDX related
Operating System: Mac OS X 10.4
PHP Version: 4.4.7
New Comment:
Duplicate of #40080.
>I have reported this before and it is still not fixed.
There is no maintainer for wddx and he/she won't magically appear if
you report your problem twice.
Previous Comments:
------------------------------------------------------------------------
[2007-05-10 18:52:47] tim at whiteinteractive dot com
Description:
------------
wddx_deserialize does not deserialize characters above and including
decimal 192 correctly. As follows:
\xC0 -> \x00
\xC1 -> \x40
\xC2 -> \x80
\xC3 -> \xC0
\xC4 -> \x3F
\xC5 -> \x3F
..........
\xFF -> \x3F
I have reported this before and it is still not fixed.
Reproduce code:
---------------
$x = "<wddxPacket
version='1.0'><header/><data><string><char
code='FF'/></string></data></wddxPacket>";
$s = wddx_deserialize( $x );
var_dump( ord($s) );
Expected result:
----------------
(int)255
Actual result:
--------------
(int)64
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41359&edit=1