Edit report at http://bugs.php.net/bug.php?id=52468&edit=1

 ID:                 52468
 Updated by:         fel...@php.net
 Reported by:        reneouendag at hotmail dot com
 Summary:            wddx_deserialize corrupts integer field value when
                     left empty
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            WDDX related
 Operating System:   CentOS release 5.5 (64 Bit)
 PHP Version:        Irrelevant
-Assigned To:        
+Assigned To:        felipe
 Block user comment: N

 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2010-08-01 19:34:11] fel...@php.net

Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&revision=301765
Log: - Fixed bug #52468 (wddx_deserialize corrupts integer field value
when left empty)

------------------------------------------------------------------------
[2010-07-28 11:16:29] reneouendag at hotmail dot com

Description:
------------
Using either PHP 5.2.6 or 5.3.2, wddx_deserialize() corrupts an empty
integer field.

Test script:
---------------
<?php



$message = "<wddxPacket
version='1.0'><header><comment>my_command</comment></header><data><struct><var
name='handle'><number></number></var></struct></data></wddxPacket>";



print_r($message);

echo "\n";

print_r(wddx_deserialize($message));



?>

Expected result:
----------------
<wddxPacket
version='1.0'><header><comment>my_command</comment></header><data><struct><var
name='handle'><number></number></var></struct></data></wddxPacket>

Array

(

    [handle] => 

)



Actual result:
--------------
<wddxPacket
version='1.0'><header><comment>my_command</comment></header><data><struct><var
name='handle'><number></number></var></struct></data></wddxPacket>

Array

(

    [handle] => 414880152

)



The number is different every time the script is run.


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



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

Reply via email to