xmlrpc_get_type() returns true on invalid dates
[2010-05-03 05:40 UTC] geissert@php.net
Description:
------------
ext/xmlrpc/tests/bug42189.phpt fails consistently on 64 bits architectures such as ia64 and x86_64.
I modified the test a bit to show what's going on. From a quick look at the code it appears to be a bug in the XMLRPC-EPI lib and not in the module itself.
Test script:
---------------
<?php
$a = '~~~~~~~~~~~~~~~~~~';
$ok = xmlrpc_set_type($a, 'datetime');
var_dump($ok);
if ($ok)
echo xmlrpc_encode($a);
echo "Done\n";
?>
Expected result:
----------------
bool(false)
Done
Actual result:
--------------
bool(true)
<?xml version="1.0" encoding="utf-8"?>
<params>
<param>
<value>
<dateTime.iso8601>~~~~~~~~~~~~~~~~~~</dateTime.iso8601>
</value>
</param>
</params>
Done
[2010-05-03 14:20 UTC] felipe@php.net
[2010-05-03 15:32 UTC] iliaa@php.net
-Status: Open +Status: Verified
[2010-05-03 15:32 UTC] iliaa@php.net
[2010-05-12 11:39 UTC] mike@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: mike
[2010-05-12 11:39 UTC] mike@php.net