#40080 [Opn->Fbk]: wddx_deserialize has unicode bug

From: Date: Thu, 17 Jul 2008 00:55:35 +0000
Subject: #40080 [Opn->Fbk]: wddx_deserialize has unicode bug
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-126847@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
+Status:           Feedback
 Bug Type:         WDDX related
 Operating System: Redhat & OS X
 PHP Version:      4.4.4
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi




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

[2007-07-11 13:08:16] jani@php.net

See also bug #38900

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

[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



Thread (4 messages)

« previous php.bugs (#126847) next »