php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16716 WDDX's <dateTime> is ignored.
Submitted: 2002-04-20 17:11 UTC Modified: 2002-05-26 14:08 UTC
From: bs_php at infeer dot com Assigned:
Status: Closed Package: WDDX related
PHP Version: 4.1.2 OS: Win 2k
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: bs_php at infeer dot com
New email:
PHP Version: OS:

 

 [2002-04-20 17:11 UTC] bs_php at infeer dot com
WDDX seams to be an unpopular standard and kind of dead. I had trouble finding 
usable docs about it. Is there a substitute? If so, is there PHP function for it?
I don't think that following has a high priority but it would be good if you at 
least could have a look at following <dataTime> problem. 

It's not mentioned which version of WDDX PHP is using, but the current implementation 
ignores some tags that have been in WDDX since V0.9 (1998). 
- PHP just ignore(!) the <dataTime>-tag. 
  Couldn't you at least transform it to a string instead of just dumping it?

- Also <recordset> is not supported. I get a funny result.

For a WDDX DTD V=0.9 (1998) See: http://www.macromedia.com/v1/documents/objects/whitepapers/wddx_dtd.txt

The PHP sample:

<?php
$wddx =<<<EOD
<wddxPacket version='0.9'>
  <header/>
  <data>
    <struct>
    
      <var name='dateTime'>
        <dateTime>1998-06-12T04:32:12</dateTime>
      </var>
      
      <var name='recSet'>
        <recordset rowCount='2' fieldNames='NAME,AGE'>
          <field name='NAME'>
           <string>John Doe</string>
           <string>Jane Doe</string>
          </field>
          <field name='AGE'>
           <number>34</number>
           <number>31</number>
          </field>
        </recordset>
      </var>
      
    </struct>
  </data>
</wddxPacket>
EOD;

$des = wddx_deserialize($wddx);
echo "<pre>";
var_dump($des);
echo "</pre>";
?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-24 03:05 UTC] bs_php at infeer dot com
According to the change list of PHP 4.2 is sais:
"Added support for parsing recordsets contained in WDDX packets. (Andrei)"
 [2002-05-26 14:08 UTC] derick@php.net
Considered closed then. Please reopen if it does not work in PHp 4.2.1.

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Oct 13 04:01:26 2024 UTC