diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2006-11-30 16:38:37 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2006-11-30 16:38:37 +0000 |
commit | ca89b6dedd5e2a790ba909e4eecdfd5fdce721b3 (patch) | |
tree | 8e1a2e1c25d52a7a76e11d82980c6792ee206f03 /ext/xmlrpc/libxmlrpc | |
parent | c69555b94895d360cd66a42547764ab43b457d03 (diff) | |
download | php-git-ca89b6dedd5e2a790ba909e4eecdfd5fdce721b3.tar.gz |
last set of zts fixes
Diffstat (limited to 'ext/xmlrpc/libxmlrpc')
-rw-r--r-- | ext/xmlrpc/libxmlrpc/xmlrpc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/xmlrpc/libxmlrpc/xmlrpc.c b/ext/xmlrpc/libxmlrpc/xmlrpc.c index 4112216866..2a5600290b 100644 --- a/ext/xmlrpc/libxmlrpc/xmlrpc.c +++ b/ext/xmlrpc/libxmlrpc/xmlrpc.c @@ -43,6 +43,9 @@ static const char rcsid[] = "#(@) $Id$"; * 9/1999 - 10/2000 * HISTORY * $Log$ + * Revision 1.8 2005/03/28 00:07:24 edink + * Reshufle includes to make it compile on windows + * * Revision 1.7 2005/03/26 03:13:58 sniper * - Made it possible to build ext/xmlrpc with libxml2 * @@ -123,6 +126,7 @@ static const char rcsid[] = "#(@) $Id$"; *******/ #include "ext/xml/expat_compat.h" +#include "main/php_reentrancy.h" #ifdef _WIN32 #include "xmlrpc_win32.h" #endif @@ -227,8 +231,8 @@ static int date_from_ISO8601 (const char *text, time_t * value) { } static int date_to_ISO8601 (time_t value, char *buf, int length) { - struct tm *tm; - tm = localtime(&value); + struct tm *tm, tmbuf; + tm = php_localtime_r(&value, &tmbuf); #if 0 /* TODO: soap seems to favor this method. xmlrpc the latter. */ return strftime (buf, length, "%Y-%m-%dT%H:%M:%SZ", tm); #else |