Lines Matching refs:new_function
59 zend_function *new_function; in zend_duplicate_function() local
63 new_function = pemalloc(sizeof(zend_internal_function), 1); in zend_duplicate_function()
64 memcpy(new_function, func, sizeof(zend_internal_function)); in zend_duplicate_function()
66 new_function = zend_arena_alloc(&CG(arena), sizeof(zend_internal_function)); in zend_duplicate_function()
67 memcpy(new_function, func, sizeof(zend_internal_function)); in zend_duplicate_function()
68 new_function->common.fn_flags |= ZEND_ACC_ARENA_ALLOCATED; in zend_duplicate_function()
70 if (EXPECTED(new_function->common.function_name)) { in zend_duplicate_function()
71 zend_string_addref(new_function->common.function_name); in zend_duplicate_function()
84 new_function = zend_arena_alloc(&CG(arena), sizeof(zend_op_array)); in zend_duplicate_function()
85 memcpy(new_function, func, sizeof(zend_op_array)); in zend_duplicate_function()
87 return new_function; in zend_duplicate_function()
659 zend_function *new_function = zend_arena_alloc(&CG(arena), sizeof(zend_op_array)); in do_inherit_method() local
660 memcpy(new_function, func, sizeof(zend_op_array)); in do_inherit_method()
661 Z_PTR_P(child) = new_function; in do_inherit_method()