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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: clemens at gutweiler dot net
New email:
PHP Version: OS:

 

 [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-2019 The PHP Group
All rights reserved.
Last updated: Tue Jul 23 22:01:28 2019 UTC