From:             geissert
Operating system: linux/kfreebsd ia64/x86_64
PHP version:      5.3.2
Package:          XMLRPC-EPI related
Bug Type:         Bug
Bug description:xmlrpc_get_type() returns true on invalid dates

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



-- 
Edit bug report at http://bugs.php.net/bug.php?id=51725&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=51725&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=51725&r=trysnapshot53
Try a snapshot (PHP 6.0):            
http://bugs.php.net/fix.php?id=51725&r=trysnapshot60
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=51725&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=51725&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=51725&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=51725&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=51725&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=51725&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=51725&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=51725&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=51725&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=51725&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=51725&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=51725&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=51725&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=51725&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=51725&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=51725&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=51725&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=51725&r=mysqlcfg

Reply via email to