Browse Source

Fixed bug #21098.

PHP-5
Ilia Alshanetsky 24 years ago
parent
commit
594c3808d4
  1. 2
      ext/standard/datetime.c

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

Loading…
Cancel
Save