]> granicus.if.org Git - php/commitdiff
MFB: Fixed compiler warnings
authorIlia Alshanetsky <iliaa@php.net>
Thu, 14 May 2009 12:30:06 +0000 (12:30 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 14 May 2009 12:30:06 +0000 (12:30 +0000)
ext/xmlrpc/xmlrpc-epi-php.c

index 6bb1f19930884cf87ed789ba2c5568ea99e12b55..0410240b58def794947b83eaff014bd67954ad69 100644 (file)
@@ -67,6 +67,7 @@
 
 #include "php.h"
 #include "ext/standard/info.h"
+#include "ext/date/php_date.h"
 #include "php_ini.h"
 #include "php_xmlrpc.h"
 #include "xmlrpc.h"
@@ -1350,7 +1351,7 @@ int set_zval_xmlrpc_type(zval* value, XMLRPC_VALUE_TYPE newtype) /* {{{ */
                        if (newtype == xmlrpc_datetime) {
                                XMLRPC_VALUE v = XMLRPC_CreateValueDateTime_ISO8601(NULL, value->value.str.val);
                                if (v) {
-                                       time_t timestamp = (time_t) php_parse_date(XMLRPC_GetValueDateTime_ISO8601(v), NULL);
+                                       time_t timestamp = (time_t) php_parse_date((char *)XMLRPC_GetValueDateTime_ISO8601(v), NULL);
                                        if (timestamp) {        
                                                zval* ztimestamp;