summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2002-12-19 17:06:36 +0000
committerIlia Alshanetsky <iliaa@php.net>2002-12-19 17:06:36 +0000
commit594c3808d44936432baa4a3ea98bf996e43efba0 (patch)
treec7ce8eb7ef8592b2ba215c02059c271fefc5ff16
parentd29309eb68efd1f32140a87307fdbda48aced575 (diff)
downloadphp-git-594c3808d44936432baa4a3ea98bf996e43efba0.tar.gz
Fixed bug #21098.
-rw-r--r--ext/standard/datetime.c2
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);
}