Bug #16716 Updated: WDDX's <dateTime> is ignored.
| From: | bs_php at infeer dot com | Date: | Wed, 24 Apr 2002 07:05:46 +0000 |
| Subject: | Bug #16716 Updated: WDDX's <dateTime> is ignored. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-5787@lists.php.net to get a copy of this message | ||
ID: 16716
Updated by: bs_php@infeer.com
-Summary: WDDX's <dateTime> and <recordset> are ignored.
Reported By: bs_php@infeer.com
Status: Open
Bug Type: WDDX related
Operating System: Win 2k
-PHP Version: 4.2.0
+PHP Version: 4.1.2
New Comment:
According to the change list of PHP 4.2 is sais:
"Added support for parsing recordsets contained in WDDX packets.
(Andrei)"
Previous Comments:
------------------------------------------------------------------------
[2002-04-20 17:11:10] bs_php@infeer.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>";
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16716&edit=1