Bug #62181 [NEW]: wddx_serialize_value() returns wrong string
| From: | clemens at gutweiler dot net | Date: | Tue, 29 May 2012 11:05:34 +0000 |
| Subject: | Bug #62181 [NEW]: wddx_serialize_value() returns wrong string | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-170900@lists.php.net to get a copy of this message | ||
From: clemens at gutweiler dot net
Operating system: Linux
PHP version: 5.4.3
Package: WDDX related
Bug Type: Bug
Bug description:wddx_serialize_value() returns wrong string
Description:
------------
wddx_serialize_value() returns wrong string, associative key elements are
wrong
interpreted in the output
the resulting string could not be interpreted by wddx_deserialize()
Test script:
---------------
var_dump(wddx_serialize_value(array("foo"=>1)));
PHP 5.3.8
string(118) "<wddxPacket
version='1.0'><header/><data><struct><var
name='foo'><number>1</number></var></struct></data></wddxPacket>"
PHP 5.4.3
string(117) "<wddxPacket
version='1.0'><header/><data><struct><var
name='foo'><number>1</number></var></array></data></wddxPacket>"
var_dump(wddx_serialize_value(array("foo"=>1,"bar"=>"barstr")));
PHP 5.3.8
string(163) "<wddxPacket
version='1.0'><header/><data><struct><var
name='foo'><number>1</number></var><var
name='bar'><string>barstr</string></var></struct></data></wddxPacket>"
PHP 5.4.3
string(140) "<wddxPacket
version='1.0'><header/><data><struct><var
name='foo'><number>1</number></var><string>barstr</string></array></data></wddxPacket>"
--
Edit bug report at https://bugs.php.net/bug.php?id=62181&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62181&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62181&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62181&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=62181&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62181&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=62181&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=62181&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=62181&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=62181&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=62181&r=support
Expected behavior: https://bugs.php.net/fix.php?id=62181&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=62181&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=62181&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=62181&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62181&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=62181&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=62181&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=62181&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=62181&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=62181&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=62181&r=mysqlcfg