php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62181 wddx_serialize_value() returns wrong string
Submitted: 2012-05-29 11:05 UTC Modified: 2013-10-02 05:48 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: clemens at gutweiler dot net Assigned:
Status: No Feedback Package: WDDX related
PHP Version: 5.4.3 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
30 - 15 = ?
Subscribe to this entry?

 
 [2012-05-29 11:05 UTC] clemens at gutweiler dot net
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>"


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-30 15:00 UTC] sjon at hortensius dot net
I cannot reproduce this bug using a vanilla 5.4.3 version, could you check if 
disabling your extensions fixes this?

http://3v4l.org/nH7LO
 [2013-10-02 05:48 UTC] mike@php.net
-Status: Open +Status: No Feedback
 [2013-10-02 05:48 UTC] mike@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.


 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Sep 19 09:03:37 2021 UTC