mirror of
https://github.com/php/php-src.git
synced 2026-04-20 22:41:20 +02:00
Require the year arg to checkdate to be an integer - fix for bug #5034
@Require the year arg to checkdate to be an integer (Rasmus)
This commit is contained in:
@@ -601,6 +601,9 @@ PHP_FUNCTION(checkdate)
|
||||
zend_get_parameters_ex(3, &month, &day, &year) == FAILURE) {
|
||||
WRONG_PARAM_COUNT;
|
||||
}
|
||||
if((*year)->type != IS_LONG) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
convert_to_long_ex(day);
|
||||
convert_to_long_ex(month);
|
||||
convert_to_long_ex(year);
|
||||
|
||||
Reference in New Issue
Block a user