fix bug #71428: Validation type inheritance with = NULL

This commit is contained in:
Joe Watkins 2016-03-29 09:57:51 +01:00
parent 3f56dfe866
commit dd70c39556
2 changed files with 13 additions and 0 deletions

View file

@ -488,6 +488,8 @@ static ZEND_COLD zend_string *zend_get_function_declaration(const zend_function
} else {
smart_str_appends(&str, "NULL");
}
} else if (arg_info->type_hint && arg_info->allow_null) {
smart_str_appends(&str, " = NULL");
}
if (++i < num_args) {