ID: 22468 User updated by: stuart at myrddraal dot demon dot co dot uk Reported By: stuart at myrddraal dot demon dot co dot uk Status: Open Bug Type: XMLRPC-EPI related Operating System: Gentoo Linux PHP Version: 4.3.0 New Comment:
If it helps, the cause of the bug appears to be a design flaw in libxmlrpc. libxmlrpc converts dateTime strings into the time_t type. On POSIX.1 compliant systems, time_t can't legally hold values earlier than the Epoch. Fixing libxmlrpc to use a different type won't be enough to support dateTime natively under PHP. PHP doesn't have any native date / time functions that can work with dates earlier than the Epoch. Best regards, Stu Previous Comments: ------------------------------------------------------------------------ [2003-02-27 20:57:07] stuart at myrddraal dot demon dot co dot uk Hi there, I'm surprised that you don't want to accept this bug. I don't agree that this bug isn't a PHP bug. Any chance of you reconsidering? 1. PHP ships with its own (forked!) copy of libxmlrpc. PHP users like myself don't go and get it from the XMLRPC-EPI project. 2. Any fix for this fault will have to be applied to PHP's CVS tree. 3. The PHP team actively investigate faults in other Extensions that are built on underlying libraries. 4. Until the bug is fixed, PHP's support for XML-RPC is not standards-compliant. Best regards, Stu ------------------------------------------------------------------------ [2003-02-27 20:36:00] [EMAIL PROTECTED] Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. This is a bug in libxmlrpc and not PHP. ------------------------------------------------------------------------ [2003-02-27 18:54:52] stuart at myrddraal dot demon dot co dot uk The XML-RPC Extension does not correctly cope with dates before the Epoch (ie, anything which won't go into time_t). This bug prevents the XML-RPC Extension passing the XML-RPC verification suite, which can be found at http://validator.xmlrpc.com/ The following example code demonstrates the fault. <?php $l_szDate = "19040401T19:01:02"; xmlrpc_set_type ($l_szDate, "datetime"); echo xmlrpc_encode_request(null, $l_szDate); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22468&edit=1