From: Ilia Alshanetsky Date: Thu, 19 Dec 2002 17:07:24 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.0RC4~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6cf87a77400f3e850e5dfa7baf7bf6bad05b1775;p=php MFH --- 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); }