Bug #14604 Updated: Empty packets as result of serialization

From: Date: Tue, 26 Mar 2002 15:45:00 +0000
Subject: Bug #14604 Updated: Empty packets as result of serialization
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-3398@lists.php.net to get a copy of this message
ID: 14604 Updated by: ken.gregg@rwre.com Reported By: jaroslaw.zgoda@generali.pl Status: Analyzed Bug Type: WDDX related Operating System: Windows NT 4 sp 6a PHP Version: 4.1.0 New Comment: Reproduced it with 4.0.6 and 4.1.2 compiled as cgi on FreeBSD 4.0-Release and Apache 1.3.12 wddx_serialize_vars produces the same empty packet. The only thing that seems to work to create a packet is wddx_serialize_value Previous Comments: ------------------------------------------------------------------------ [2001-12-22 15:48:23] jan@php.net sander, can you also test for PHP 4.0.6 to verify if it broke during the 4.1 release circle? ------------------------------------------------------------------------ [2001-12-22 15:20:20] sander@php.net Reproduced on Windows 2000 with 4.1.0 on Apache 1.3.22 (module). Outpu: <wddxPacket version='1.0'><header/><data><struct></struct></data></wddxPacket> ------------------------------------------------------------------------ [2001-12-19 10:45:21] jan@php.net at least for me your code works in the same way under 4.0.6 and 4.1.0 on FreeBSD 4.4-STABLE (yes, I finally updated ;): bash-2.05a$ ./php test.php X-Powered-By: PHP/4.0.6 Content-type: text/html <wddxPacket version='1.0'><header/><data><struct></struct></data></wddxPacket>bash-2.05a$ bash-2.05a$ ./php test.php X-Powered-By: PHP/4.1.0 Content-type: text/html <wddxPacket version='1.0'><header/><data><struct></struct></data></wddxPacket>bash-2.05a$ bash-2.05a$ cat test.php <?php $nazwisko = "Zgoda"; $imie = "Jarek"; $tmp = wddx_packet_start(); wddx_add_vars($tmp, $nazwisko, $imie); $rs = wddx_packet_end($tmp); echo $rs; ?> ------------------------------------------------------------------------ [2001-12-19 09:48:07] jaroslaw.zgoda@generali.pl $nazwisko = "Zgoda"; $imie = "Jarek"; $tmp = wddx_packet_start(); wddx_add_vars($tmp, $nazwisko, $imie); $rs = wddx_packet_end($tmp); echo $rs; This code produces empty packet (just structure definition - no data) in 4.1.0, while it worked in 4.0.6 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14604&edit=1

« previous php.bugs (#3398) next »