summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-09-21 10:50:29 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-09-21 10:50:29 +0200
commit2bf2cede8933586bb5be2fd77af650a23fcc936e (patch)
treed74d8514a9fec89dd8f5ef3f1de616c790085abc /Zend/zend_API.c
parent48e9181519c54877e3e5ea7cd8a7653a90402056 (diff)
downloadphp-git-2bf2cede8933586bb5be2fd77af650a23fcc936e.tar.gz
Initialize attributes for internal functions
Fixes a crash in Symfony SecurityBundle tests.
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index ee0e361ed9..6e89da89bb 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -2325,6 +2325,7 @@ ZEND_API zend_result zend_register_functions(zend_class_entry *scope, const zend
internal_function->function_name = zend_string_init_interned(ptr->fname, fname_len, 1);
internal_function->scope = scope;
internal_function->prototype = NULL;
+ internal_function->attributes = NULL;
if (ptr->flags) {
if (!(ptr->flags & ZEND_ACC_PPP_MASK)) {
if (ptr->flags != ZEND_ACC_DEPRECATED && scope) {