Bug #62181 [Opn->NoF]: wddx_serialize_value() returns wrong string

From: Date: Wed, 02 Oct 2013 05:48:32 +0000
Subject: Bug #62181 [Opn->NoF]: wddx_serialize_value() returns wrong string
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-181928@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=62181&edit=1

 ID:                 62181
 Updated by:         mike@php.net
 Reported by:        clemens at gutweiler dot net
 Summary:            wddx_serialize_value() returns wrong string
-Status:             Open
+Status:             No Feedback
 Type:               Bug
 Package:            WDDX related
 Operating System:   Linux
 PHP Version:        5.4.3
 Block user comment: N
 Private report:     N

 New Comment:

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.




Previous Comments:
------------------------------------------------------------------------
[2012-05-30 15:00:17] 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

------------------------------------------------------------------------
[2012-05-29 11:05:34] 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>"



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=62181&edit=1


Thread (3 messages)

« previous php.bugs (#181928) next »