summaryrefslogtreecommitdiff
path: root/ext/ftp
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-06-07 08:58:38 +0000
committerAntony Dovgal <tony2001@php.net>2007-06-07 08:58:38 +0000
commit976a22df1608fa843edddaef0c78a996b664d4a0 (patch)
tree65fe2b421070670c835c38205f52403c8513aed5 /ext/ftp
parenta9f6f71460602d00a3497b8e848b857e8055a7d6 (diff)
downloadphp-git-976a22df1608fa843edddaef0c78a996b664d4a0.tar.gz
php_gmtime_r() fixes
Diffstat (limited to 'ext/ftp')
-rw-r--r--ext/ftp/ftp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c
index 80165e8508..820de4cb30 100644
--- a/ext/ftp/ftp.c
+++ b/ext/ftp/ftp.c
@@ -1012,6 +1012,9 @@ ftp_mdtm(ftpbuf_t *ftp, const char *path)
/* figure out the GMT offset */
stamp = time(NULL);
gmt = php_gmtime_r(&stamp, &tmbuf);
+ if (!gmt) {
+ return -1;
+ }
gmt->tm_isdst = -1;
/* apply the GMT offset */