mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- MFH: Fixed reversed logic.
This commit is contained in:
parent
c76ba173a9
commit
e7ee127f9c
1 changed files with 1 additions and 1 deletions
|
@ -1610,7 +1610,7 @@ PHP_FUNCTION(checkdate)
|
|||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
if (y < 1 || y > 32767 || timelib_valid_date(y, m, d)) {
|
||||
if (y < 1 || y > 32767 || !timelib_valid_date(y, m, d)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
RETURN_TRUE; /* True : This month, day, year arguments are valid */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue