Lines Matching refs:new_fn
1589 zend_function *new_fn; in zend_add_trait_method() local
1633 new_fn = zend_arena_alloc(&CG(arena), sizeof(zend_internal_function)); in zend_add_trait_method()
1634 memcpy(new_fn, fn, sizeof(zend_internal_function)); in zend_add_trait_method()
1635 new_fn->common.fn_flags |= ZEND_ACC_ARENA_ALLOCATED; in zend_add_trait_method()
1637 new_fn = zend_arena_alloc(&CG(arena), sizeof(zend_op_array)); in zend_add_trait_method()
1638 memcpy(new_fn, fn, sizeof(zend_op_array)); in zend_add_trait_method()
1639 new_fn->op_array.fn_flags |= ZEND_ACC_TRAIT_CLONE; in zend_add_trait_method()
1640 new_fn->op_array.fn_flags &= ~ZEND_ACC_IMMUTABLE; in zend_add_trait_method()
1644 new_fn->common.function_name = name; in zend_add_trait_method()
1645 function_add_ref(new_fn); in zend_add_trait_method()
1646 fn = zend_hash_update_ptr(&ce->function_table, key, new_fn); in zend_add_trait_method()