#18665 [Opn]: Empty number tag produces random value after deserialization

From: Date: Wed, 31 Jul 2002 12:49:53 +0000
Subject: #18665 [Opn]: Empty number tag produces random value after deserialization
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-15662@lists.php.net to get a copy of this message
ID: 18665 Updated by: nohn@php.net Reported By: mark@q-go.com Status: Open Bug Type: WDDX related -Operating System: Linux RH 7.1 +Operating System: Linux RH 7.1, Compaq Tru64 -PHP Version: 4.1.2 +PHP Version: 4.1.2, 4.2.0 New Comment: 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? Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#15662) next »