Bug #52468 [Opn->Csd]: wddx_deserialize corrupts integer field value when left empty
| From: | felipe@php.net | Date: | Sun, 01 Aug 2010 17:34:43 +0000 |
| Subject: | Bug #52468 [Opn->Csd]: wddx_deserialize corrupts integer field value when left empty | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-153015@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52468&edit=1
ID: 52468
Updated by: felipe@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] felipe@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