php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14604 Empty packets as result of serialization
Submitted: 2001-12-19 09:48 UTC Modified: 2002-04-09 16:52 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: jaroslaw dot zgoda at generali dot pl Assigned:
Status: Not a bug Package: WDDX related
PHP Version: 4.1.0 OS: Windows NT 4 sp 6a
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jaroslaw dot zgoda at generali dot pl
New email:
PHP Version: OS:

 

 [2001-12-19 09:48 UTC] jaroslaw dot zgoda at generali dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-19 10:45 UTC] 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-22 15:20 UTC] 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-22 15:48 UTC] jan@php.net
sander, can you also test for PHP 4.0.6 to verify if it broke during the 4.1 release circle?

 [2002-03-26 10:44 UTC] ken dot gregg at rwre dot com
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
 [2002-04-09 16:52 UTC] jimw@php.net
wddx_add_vars (and wddx_serialize_vars) takes variable names, not variables. your call should be: wddx_add_vars($tmp, 'nazwisko', 'imie');
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC