summaryrefslogtreecommitdiff
path: root/Zend/zend_inheritance.c
diff options
context:
space:
mode:
authorJoe Watkins <krakjoe@php.net>2016-03-29 09:57:51 +0100
committerJoe Watkins <krakjoe@php.net>2016-03-29 09:57:51 +0100
commitdd70c39556fe6efe2e1f28cecf8fc73d9588d04a (patch)
tree5a3902fdcf370421985369a0b081f472b55a20b5 /Zend/zend_inheritance.c
parent3f56dfe8660b45c72dee7adcd856dd9a7049cf5b (diff)
downloadphp-git-dd70c39556fe6efe2e1f28cecf8fc73d9588d04a.tar.gz
fix bug #71428: Validation type inheritance with = NULL
Diffstat (limited to 'Zend/zend_inheritance.c')
-rw-r--r--Zend/zend_inheritance.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c
index b52f45487c..1ea38a16af 100644
--- a/Zend/zend_inheritance.c
+++ b/Zend/zend_inheritance.c
@@ -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) {