From: mattsch at gmail dot com Operating system: Gentoo PHP version: 5.1.1 PHP Bug Type: WDDX related Bug description: wddx_deserialize not parsing dateTime fields properly
Description: ------------ wddx_deserialize does not parse the dateTime like it did in php 5.0.4. 5.0.4 parsed the dateTime into a unix timestamp. 5.1.1 does not convert it and keeps it as this format: 2006-1-6T0:0:0-8:0 Reproduce code: --------------- $eventsXML = wddx_deserialize(file_get_contents($eventsXMLFile)); echo $eventsXML['eventDate'][$i]; Expected result: ---------------- Output a unix time stamp like php 5.0.4. 5.0.4 format: 1136534400 5.1.1 format: 2006-1-6T0:0:0-8:0 Actual result: -------------- Outputs incorrect format for datetimes: 2006-1-6T0:0:0-8:0 -- Edit bug report at http://bugs.php.net/?id=35887&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35887&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35887&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35887&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35887&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35887&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35887&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35887&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35887&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35887&r=support Expected behavior: http://bugs.php.net/fix.php?id=35887&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35887&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35887&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35887&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35887&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35887&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35887&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35887&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35887&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35887&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35887&r=mysqlcfg