diff options
author | Antony Dovgal <tony2001@php.net> | 2007-06-07 09:07:12 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2007-06-07 09:07:12 +0000 |
commit | f1f0deae4cbfa8006536481359f52dd308e15d95 (patch) | |
tree | 33c4cab67b280d5712824ac3180d547fd1901b8d /ext/xmlrpc/libxmlrpc/xmlrpc.c | |
parent | 976a22df1608fa843edddaef0c78a996b664d4a0 (diff) | |
download | php-git-f1f0deae4cbfa8006536481359f52dd308e15d95.tar.gz |
php_localtime_r() checks
Diffstat (limited to 'ext/xmlrpc/libxmlrpc/xmlrpc.c')
-rw-r--r-- | ext/xmlrpc/libxmlrpc/xmlrpc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/xmlrpc/libxmlrpc/xmlrpc.c b/ext/xmlrpc/libxmlrpc/xmlrpc.c index 555ffae22c..3c192d93f6 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.10 2007/01/01 09:29:33 sebastian + * Bump year. + * * Revision 1.9 2007/11/30 16:38:53 iliaa * zts fixes * @@ -236,6 +239,9 @@ 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, tmbuf; tm = php_localtime_r(&value, &tmbuf); + if (!tm) { + return 0; + } #if 0 /* TODO: soap seems to favor this method. xmlrpc the latter. */ return strftime (buf, length, "%Y-%m-%dT%H:%M:%SZ", tm); #else |