#38839 [Opn->Fbk]: wddx_serialize_value() broken in 4.4.3 and greater.
| From: | tony2001@php.net | Date: | Fri, 15 Sep 2006 10:04:37 +0000 |
| Subject: | #38839 [Opn->Fbk]: wddx_serialize_value() broken in 4.4.3 and greater. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-102220@lists.php.net to get a copy of this message | ||
ID: 38839
Updated by: tony2001@php.net
Reported By: rob at choralone dot org
-Status: Open
+Status: Feedback
Bug Type: WDDX related
Operating System: Linux
PHP Version: 4.4.4
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2006-09-15 09:56:43] rob at choralone dot org
Description:
------------
wddx_serialize_value() produces bad wddx data when serializing an
associative array.
This first started happening with PHP 4.4.3, so I suspect the fix for
bug #37569 (WDDX incorrectly encodes high-ascii characters) probably
broke it.
Reproduce code:
---------------
<?php
$data = array('foo' => 'bar');
print(wddx_serialize_value($data));
?>
Expected result:
----------------
<wddxPacket version='1.0'><header/><data><struct><var
name='foo'><string>bar</string></var></struct></data></wddxPacket>
run through xml tidy to make it readable:
<wddxPacket version='1.0'>
<header/>
<data>
<struct>
<var name='foo'>
<string>bar</string>
</var>
</struct>
</data>
</wddxPacket>
Actual result:
--------------
<wddxPacket
version='1.0'><header/><data><struct><va<string>bar</string></var></struct></data></wddxPacket>
run through xml tidy to make it readable:
<wddxPacket version='1.0'>
<header/>
<data>
<struct>
<va<string>bar</string></var>
</struct>
</data>
</wddxPacket>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38839&edit=1