#38839 [NEW]: wddx_serialize_value() broken in 4.4.3 and greater.
| From: | rob at choralone dot org | Date: | Fri, 15 Sep 2006 09:56:43 +0000 |
| Subject: | #38839 [NEW]: wddx_serialize_value() broken in 4.4.3 and greater. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-102218@lists.php.net to get a copy of this message | ||
From: rob at choralone dot org
Operating system: Linux
PHP version: 4.4.4
PHP Bug Type: WDDX related
Bug description: wddx_serialize_value() broken in 4.4.3 and greater.
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 bug report at http://bugs.php.net/?id=38839&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38839&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38839&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38839&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=38839&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=38839&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=38839&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=38839&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=38839&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=38839&r=support
Expected behavior: http://bugs.php.net/fix.php?id=38839&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=38839&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=38839&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=38839&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38839&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=38839&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=38839&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=38839&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=38839&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=38839&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=38839&r=mysqlcfg