]> granicus.if.org Git - php/commitdiff
MFH
authorIlia Alshanetsky <iliaa@php.net>
Thu, 19 Dec 2002 17:07:24 +0000 (17:07 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 19 Dec 2002 17:07:24 +0000 (17:07 +0000)
ext/standard/datetime.c

index 1d0d6f1e75c67bd39c1eaba19318befb6950701d..c4c4dd763f89934a7733fb906d114e3c68a4c317 100644 (file)
@@ -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);
        }