diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-13 16:38:51 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-26 10:05:20 +0100 |
commit | b35b0142e68458475df03c24e622f1c4173ff68b (patch) | |
tree | e765dfdfde4fe27698789885ebf0f9e7df33a51e /Zend/zend_inheritance.c | |
parent | 8d30d5f26944f98ef370cc09a638461510e9ad2b (diff) | |
download | php-git-b35b0142e68458475df03c24e622f1c4173ff68b.tar.gz |
Require all internal functions to have arginfo
Diffstat (limited to 'Zend/zend_inheritance.c')
-rw-r--r-- | Zend/zend_inheritance.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c index 219c1ffcc9..587d4b2634 100644 --- a/Zend/zend_inheritance.c +++ b/Zend/zend_inheritance.c @@ -530,14 +530,6 @@ static inheritance_status zend_do_perform_implementation_check( inheritance_status status, local_status; zend_bool proto_is_variadic, fe_is_variadic; - /* If it's a user function then arg_info == NULL means we don't have any parameters but - * we still need to do the arg number checks. We are only willing to ignore this for internal - * functions because extensions don't always define arg_info. - */ - if (!proto->common.arg_info && proto->common.type != ZEND_USER_FUNCTION) { - return INHERITANCE_SUCCESS; - } - /* Checks for constructors only if they are declared in an interface, * or explicitly marked as abstract */ |