Lines Matching refs:new_fn
1876 zend_function *new_fn; in zend_add_trait_method() local
1917 new_fn = zend_arena_alloc(&CG(arena), sizeof(zend_internal_function)); in zend_add_trait_method()
1918 memcpy(new_fn, fn, sizeof(zend_internal_function)); in zend_add_trait_method()
1919 new_fn->common.fn_flags |= ZEND_ACC_ARENA_ALLOCATED; in zend_add_trait_method()
1921 new_fn = zend_arena_alloc(&CG(arena), sizeof(zend_op_array)); in zend_add_trait_method()
1922 memcpy(new_fn, fn, sizeof(zend_op_array)); in zend_add_trait_method()
1923 new_fn->op_array.fn_flags &= ~ZEND_ACC_IMMUTABLE; in zend_add_trait_method()
1925 new_fn->common.fn_flags |= ZEND_ACC_TRAIT_CLONE; in zend_add_trait_method()
1928 new_fn->common.function_name = name; in zend_add_trait_method()
1929 function_add_ref(new_fn); in zend_add_trait_method()
1930 fn = zend_hash_update_ptr(&ce->function_table, key, new_fn); in zend_add_trait_method()