#40080 [Opn]: wddx_deserialize has unicode bug
| From: | jani@php.net | Date: | Wed, 11 Jul 2007 13:08:17 +0000 |
| Subject: | #40080 [Opn]: wddx_deserialize has unicode bug | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-114901@lists.php.net to get a copy of this message | ||
ID: 40080
Updated by: jani@php.net
Reported By: tim at whiteinteractive dot com
Status: Open
Bug Type: WDDX related
Operating System: Redhat & OS X
PHP Version: 4.4.4
New Comment:
See also bug #38900
Previous Comments:
------------------------------------------------------------------------
[2007-01-09 19:44:57] tim at whiteinteractive dot com
It looks like wddx_deserialize converts any single <char> node with
code point above decimal 192 wrongly!
See:
http://www.whiteinteractive.com/utf8bug/test3.php
and source:
http://www.whiteinteractive.com/utf8bug/test3.phps
------------------------------------------------------------------------
[2007-01-09 18:38:43] tim at whiteinteractive dot com
Description:
------------
wddx_deseralize seems to convert utf8 character sequences wrongly from
<char> nodes. Just the leading byte seems to be off, the subsequent
one[s] are correct.
Tested on both 4.3.11 (Redhat) and 4.4.5RC1 (OS X)
Please see my test page below.
P.S. Sorry for duplicate post (#40052) I decided the category was
wrong.
Reproduce code:
---------------
Interactive example:
http://whiteinteractive.com/utf8bug/test2.php
and source:
http://whiteinteractive.com/utf8bug/test2.phps
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40080&edit=1