diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2002-12-19 17:06:36 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2002-12-19 17:06:36 +0000 |
commit | 594c3808d44936432baa4a3ea98bf996e43efba0 (patch) | |
tree | c7ce8eb7ef8592b2ba215c02059c271fefc5ff16 | |
parent | d29309eb68efd1f32140a87307fdbda48aced575 (diff) | |
download | php-git-594c3808d44936432baa4a3ea98bf996e43efba0.tar.gz |
Fixed bug #21098.
-rw-r--r-- | ext/standard/datetime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/datetime.c b/ext/standard/datetime.c index 1d0d6f1e75..c4c4dd763f 100644 --- a/ext/standard/datetime.c +++ b/ext/standard/datetime.c @@ -196,7 +196,7 @@ void php_mktime(INTERNAL_FUNCTION_PARAMETERS, int gm) t = mktime(ta); #ifdef PHP_WIN32 - if (t < 0) { + if (t - chgsecs < 0) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "Windows does not support negative values for this function"); RETURN_LONG(-1); } |