- Fixed invalid date checking

This commit is contained in:
Felipe Pena 2009-05-22 12:49:22 +00:00
parent 5d3636dfd2
commit 0b19747809

View File

@ -1352,7 +1352,7 @@ int set_zval_xmlrpc_type(zval* value, XMLRPC_VALUE_TYPE newtype) /* {{{ */
XMLRPC_VALUE v = XMLRPC_CreateValueDateTime_ISO8601(NULL, value->value.str.val);
if (v) {
time_t timestamp = (time_t) php_parse_date((char *)XMLRPC_GetValueDateTime_ISO8601(v), NULL);
if (timestamp) {
if (timestamp != -1) {
zval* ztimestamp;
MAKE_STD_ZVAL(ztimestamp);