This commit is contained in:
Ilia Alshanetsky 2002-12-19 17:06:36 +00:00
parent d29309eb68
commit 594c3808d4

View 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);
}