diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-09-19 18:22:51 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-09-19 18:22:51 +0000 |
commit | 9259c4e598c4b8b3bd6b35a2bf2ac32e32143b1b (patch) | |
tree | 793adc1b85824814e4e7044067e5907f8727194d | |
parent | 6f0db0889f5c6847d7d10d13c69dff8a6a5e9526 (diff) | |
download | php-git-9259c4e598c4b8b3bd6b35a2bf2ac32e32143b1b.tar.gz |
Fixed bug #19414
-rw-r--r-- | ext/standard/datetime.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c index 53b0622649..e9bc35f43e 100644 --- a/ext/standard/datetime.c +++ b/ext/standard/datetime.c @@ -194,9 +194,11 @@ void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gm) } t = mktime(ta); - seconds = t - chgsecs; - + if (t == -1) { + RETURN_LONG(-1); + } + seconds = t - chgsecs; if (is_dst == -1) { struct tm t1, t2; |