1
0
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:
Rasmus Lerdorf
2000-06-14 16:35:48 +00:00
parent 79f857b323
commit 0b5ca3f7d5

View File

@@ -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);