mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
Fixed bug #21098.
This commit is contained in:
parent
d29309eb68
commit
594c3808d4
@ -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…
Reference in New Issue
Block a user