#18665 [Opn->Csd]: Empty number tag produces random value after deserialization
| From: | sniper@php.net | Date: | Fri, 02 Aug 2002 23:10:15 +0000 |
| Subject: | #18665 [Opn->Csd]: Empty number tag produces random value after deserialization | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-15877@lists.php.net to get a copy of this message | ||
ID: 18665
Updated by: sniper@php.net
Reported By: mark@q-go.com
-Status: Open
+Status: Closed
Bug Type: WDDX related
Operating System: Linux RH 7.1, Compaq Tru64
PHP Version: 4.1.2, 4.2.0
New Comment:
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a
documentation
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2002-07-31 08:49:52] nohn@php.net
Could verify this with PHP 4.2.0 on Compaq Tru64. Verification with PHP
4.3.0-dev from 2002/07/30 failed. So seems to be fixed in CVS. Can
anyone of PHP-DEV confirm this?
------------------------------------------------------------------------
[2002-07-31 08:46:15] mark@q-go.com
The following code:
<?
$p = "<wddxPacket
version='1.0'><header/><data><struct><var
name='var1'><number/></var><var
name='var2'><number>1</number></var></struct></data></wddxPacket>";
print_r(wddx_deserialize($p));
?>
shows that the variable 'var1' gets a random value after
deserialization. I would expect that 'var1' wouldn't get set, or at
least assigned with the value 0.
If you can't reproduce it the first time, reload the script a couple of
times.
Kind regards
Mark Pors
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18665&edit=1