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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 10:01:29 2024 UTC