summaryrefslogtreecommitdiff
path: root/Zend/zend_inheritance.c
diff options
context:
space:
mode:
authorJohn Boehr <jbboehr@gmail.com>2016-09-21 20:09:45 -0700
committerNikita Popov <nikic@php.net>2016-09-22 12:38:07 +0200
commit68e602ff0a31f1c90ba3ad8717ae3a86d10854c7 (patch)
tree1e5cb50db1e7237cb431bd35b339748207bf7894 /Zend/zend_inheritance.c
parentadaf68c3b1202d58f9ebef5a500db6e0afc6d463 (diff)
downloadphp-git-68e602ff0a31f1c90ba3ad8717ae3a86d10854c7.tar.gz
Fix bug #69579
Diffstat (limited to 'Zend/zend_inheritance.c')
-rw-r--r--Zend/zend_inheritance.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c
index 85aadcb29e..00c514259b 100644
--- a/Zend/zend_inheritance.c
+++ b/Zend/zend_inheritance.c
@@ -1180,6 +1180,7 @@ static void zend_add_trait_method(zend_class_entry *ce, const char *name, zend_s
function_add_ref(fn);
new_fn = zend_arena_alloc(&CG(arena), sizeof(zend_op_array));
memcpy(new_fn, fn, sizeof(zend_op_array));
+ new_fn->common.fn_flags |= ZEND_ACC_ARENA_ALLOCATED;
fn = zend_hash_update_ptr(&ce->function_table, key, new_fn);
zend_add_magic_methods(ce, key, fn);
}