/php-src/Zend/ |
H A D | zend_observer.h | 49 #define ZEND_OBSERVER_FCALL_BEGIN(execute_data) do { \ argument 51 zend_observer_fcall_begin(execute_data); \ 55 #define ZEND_OBSERVER_FCALL_END(execute_data, return_value) do { \ argument 57 zend_observer_fcall_end(execute_data, return_value); \ 61 typedef void (*zend_observer_fcall_begin_handler)(zend_execute_data *execute_data); 87 ZEND_API void ZEND_FASTCALL zend_observer_fcall_begin(zend_execute_data *execute_data); 115 if (!zend_observer_fcall_has_no_observers(execute_data, allow_generator, &handler)) { in zend_observer_fcall_begin_specialized() 116 zend_observer_fcall_begin_prechecked(execute_data, handler); in zend_observer_fcall_begin_specialized() 120 ZEND_API void ZEND_FASTCALL zend_observer_generator_resume(zend_execute_data *execute_data); 125 if (execute_data == EG(current_observed_frame)) { in zend_observer_fcall_end() [all …]
|
H A D | zend_verify_type_inference.h | 22 #define VM_TRACE(op) zend_verify_inference_use(execute_data, OPLINE); \ 27 __current_ex = execute_data; __current_op = OPLINE; \ 130 static void zend_verify_inference_use(zend_execute_data *execute_data, const zend_op *opline) in zend_verify_inference_use() argument 136 …ence(EX_VAR(opline->op1.var), opline->op1_use_type, opline->op1_type, execute_data, opline, "op1_u… in zend_verify_inference_use() 140 …ence(EX_VAR(opline->op2.var), opline->op2_use_type, opline->op2_type, execute_data, opline, "op2_u… in zend_verify_inference_use() 152 static void zend_verify_inference_def(zend_execute_data *execute_data, const zend_op *opline) in zend_verify_inference_def() argument 195 && execute_data->prev_execute_data in zend_verify_inference_def() 196 && execute_data->prev_execute_data->func in zend_verify_inference_def() 197 && ZEND_USER_CODE(execute_data->prev_execute_data->func->type)) { in zend_verify_inference_def() 198 zend_execute_data *prev_execute_data = execute_data->prev_execute_data; in zend_verify_inference_def() [all …]
|
H A D | zend_generators.c | 93 execute_data->call = NULL; in zend_generator_freeze_call_stack() 124 generator->execute_data = execute_data; in zend_generator_cleanup_unfinished_execution() 137 zend_execute_data *execute_data = generator->execute_data; in zend_generator_close() local 140 generator->execute_data = NULL; in zend_generator_close() 158 generator->execute_data = NULL; in zend_generator_close() 170 efree(execute_data); in zend_generator_close() 387 zend_execute_data *execute_data = generator->execute_data; in zend_generator_frame_gc() local 416 zend_execute_data *execute_data = generator->execute_data; in zend_generator_get_gc() local 418 if (!execute_data) { in zend_generator_get_gc() 578 if (root->execute_data) { in get_new_root() [all …]
|
H A D | zend_observer.c | 119 zend_function *function = execute_data->func; in zend_observer_fcall_install() 262 zend_observer_fcall_install(execute_data); in zend_observer_fcall_begin_prechecked() 271 EG(current_observed_frame) = execute_data; in zend_observer_fcall_begin_prechecked() 279 (*handler)(execute_data); in zend_observer_fcall_begin_prechecked() 285 _zend_observe_fcall_begin(execute_data); in zend_observer_generator_resume() 292 _zend_observe_fcall_begin(execute_data); in zend_observer_fcall_begin() 309 (*handler)(execute_data, return_value); in call_end_observers() 323 while (execute_data) { in zend_observer_fcall_end_all() 324 EG(current_execute_data) = execute_data; in zend_observer_fcall_end_all() 325 call_end_observers(execute_data, NULL); in zend_observer_fcall_end_all() [all …]
|
H A D | zend_dtrace.h | 33 ZEND_API extern void (*zend_dtrace_execute_internal)(zend_execute_data *execute_data, zval *return_… 36 ZEND_API void dtrace_execute_ex(zend_execute_data *execute_data); 37 ZEND_API void dtrace_execute_internal(zend_execute_data *execute_data, zval *return_value);
|
H A D | zend_dtrace.c | 27 ZEND_API void (*zend_dtrace_execute_internal)(zend_execute_data *execute_data, zval *return_value); 55 ZEND_API void dtrace_execute_ex(zend_execute_data *execute_data) in dtrace_execute_ex() argument 81 execute_ex(execute_data); in dtrace_execute_ex() 92 ZEND_API void dtrace_execute_internal(zend_execute_data *execute_data, zval *return_value) in dtrace_execute_internal() argument 105 execute_internal(execute_data, return_value); in dtrace_execute_internal()
|
H A D | zend_vm_execute.skl | 44 zend_execute_data *execute_data; 59 execute_data = zend_vm_stack_push_call_frame(call_info, 62 execute_data->symbol_table = zend_rebuild_symbol_table(); 64 execute_data->symbol_table = &EG(symbol_table); 67 i_init_code_execute_data(execute_data, op_array, return_value); 68 ZEND_OBSERVER_FCALL_BEGIN(execute_data); 69 zend_{%EXECUTOR_NAME%}_ex(execute_data); 71 zend_vm_stack_free_call_frame(execute_data);
|
H A D | zend_vm_trace_lines.h | 21 #define VM_TRACE(op) zend_vm_trace(execute_data, opline); 27 static void zend_vm_trace(const zend_execute_data *execute_data, const zend_op *opline) in zend_vm_trace() argument
|
H A D | zend_generators.h | 62 zend_execute_data *execute_data; member 110 ZEND_API zend_execute_data* zend_generator_freeze_call_stack(zend_execute_data *execute_data); 129 if (EXPECTED(root->execute_data)) { in zend_generator_get_current()
|
H A D | zend_execute.h | 33 ZEND_API extern void (*zend_execute_ex)(zend_execute_data *execute_data); 34 ZEND_API extern void (*zend_execute_internal)(zend_execute_data *execute_data, zval *return_value); 44 ZEND_API void zend_init_execute_data(zend_execute_data *execute_data, zend_op_array *op_array, zval… 45 ZEND_API void zend_init_func_execute_data(zend_execute_data *execute_data, zend_op_array *op_array,… 46 ZEND_API void zend_init_code_execute_data(zend_execute_data *execute_data, zend_op_array *op_array,… 48 ZEND_API void execute_ex(zend_execute_data *execute_data); 49 ZEND_API void execute_internal(zend_execute_data *execute_data, zval *return_value); 63 ZEND_API ZEND_COLD void ZEND_FASTCALL zend_missing_arg_error(zend_execute_data *execute_data); 381 ZEND_API zend_function *zend_active_function_ex(zend_execute_data *execute_data); 433 ZEND_API void ZEND_FASTCALL zend_free_compiled_variables(zend_execute_data *execute_data); [all …]
|
H A D | zend_execute_API.c | 1846 zend_op_array *op_array = &execute_data->func->op_array; in zend_attach_symbol_table() 1847 HashTable *ht = execute_data->symbol_table; in zend_attach_symbol_table() 1881 zend_op_array *op_array = &execute_data->func->op_array; in zend_detach_symbol_table() 1882 HashTable *ht = execute_data->symbol_table; in zend_detach_symbol_table() 1908 while (execute_data && (!execute_data->func || !ZEND_USER_CODE(execute_data->func->common.type))) { in zend_set_local_var() 1909 execute_data = execute_data->prev_execute_data; in zend_set_local_var() 1912 if (execute_data) { in zend_set_local_var() 1915 zend_op_array *op_array = &execute_data->func->op_array; in zend_set_local_var() 1951 while (execute_data && (!execute_data->func || !ZEND_USER_CODE(execute_data->func->common.type))) { in zend_set_local_var_str() 1952 execute_data = execute_data->prev_execute_data; in zend_set_local_var_str() [all …]
|
/php-src/ext/zend_test/ |
H A D | observer.c | 79 assert_observer_opline(execute_data); in observer_begin() 85 if (execute_data->func && execute_data->func->common.function_name) { in observer_begin() 86 if (execute_data->func->common.scope) { in observer_begin() 95 observer_show_opcode(execute_data); in observer_begin() 124 assert_observer_opline(execute_data); in observer_end() 133 observer_show_opcode(execute_data); in observer_end() 135 if (execute_data->func && execute_data->func->common.function_name) { in observer_end() 138 if (execute_data->func->common.scope) { in observer_end() 164 zend_execute_data *ex = execute_data; in observer_show_init_backtrace() 189 zend_function *fbc = execute_data->func; in observer_fcall_init() [all …]
|
H A D | fiber.c | 79 zend_execute_data *execute_data; in zend_test_fiber_execute() local 91 execute_data = (zend_execute_data *) stack->top; in zend_test_fiber_execute() 93 memset(execute_data, 0, sizeof(zend_execute_data)); in zend_test_fiber_execute() 94 execute_data->func = (zend_function *) &zend_pass_function; in zend_test_fiber_execute() 96 EG(current_execute_data) = execute_data; in zend_test_fiber_execute()
|
/php-src/sapi/fuzzer/ |
H A D | fuzzer-execute-common.h | 51 static void (*orig_execute_ex)(zend_execute_data *execute_data); 53 static void fuzzer_execute_ex(zend_execute_data *execute_data) { in fuzzer_execute_ex() argument 57 if ((ret = ((opcode_handler_t) EX(opline)->handler)(execute_data)) != 0) { in fuzzer_execute_ex() 59 execute_data = EG(current_execute_data); in fuzzer_execute_ex() 80 static void (*orig_execute_internal)(zend_execute_data *execute_data, zval *return_value); 82 static void fuzzer_execute_internal(zend_execute_data *execute_data, zval *return_value) { in fuzzer_execute_internal() argument 85 uint32_t num_args = ZEND_CALL_NUM_ARGS(execute_data); in fuzzer_execute_internal() 89 zval *arg = ZEND_CALL_VAR_NUM(execute_data, i); in fuzzer_execute_internal() 95 orig_execute_internal(execute_data, return_value); in fuzzer_execute_internal()
|
H A D | fuzzer-sapi.c | 210 static zend_execute_data execute_data; in fuzzer_setup_dummy_frame() local 213 memset(&execute_data, 0, sizeof(zend_execute_data)); in fuzzer_setup_dummy_frame() 218 execute_data.func = &func; in fuzzer_setup_dummy_frame() 219 EG(current_execute_data) = &execute_data; in fuzzer_setup_dummy_frame()
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_frame.c | 107 if (PHPDBG_FRAME(generator)->execute_data->call) { in phpdbg_restore_frame() 116 EG(current_execute_data) = PHPDBG_FRAME(execute_data); in phpdbg_restore_frame() 121 …zend_execute_data *execute_data = PHPDBG_FRAME(num) ? PHPDBG_FRAME(execute_data) : EG(current_exec… in phpdbg_switch_frame() local 130 while (execute_data) { in phpdbg_switch_frame() 136 execute_data = execute_data->prev_execute_data; in phpdbg_switch_frame() 137 } while (execute_data && execute_data->opline == NULL); in phpdbg_switch_frame() 144 if (execute_data == NULL) { in phpdbg_switch_frame() 156 EG(current_execute_data) = execute_data; in phpdbg_switch_frame() 310 if (EG(current_execute_data) == gen->execute_data) { in phpdbg_open_generator_frame() 319 EG(current_execute_data) = gen->execute_data; in phpdbg_open_generator_frame() [all …]
|
H A D | phpdbg_print.h | 40 void phpdbg_print_opline(zend_execute_data *execute_data, bool ignore_flags);
|
H A D | phpdbg_prompt.c | 1035 if (gen->execute_data) { in PHPDBG_COMMAND() 1052 if (gen->execute_data) { in PHPDBG_COMMAND() 1684 phpdbg_print_opline(execute_data, 0); in phpdbg_execute_ex() 1690 zend_execute_data *prev_ex = execute_data; in phpdbg_execute_ex() 1728 phpdbg_print_opline(execute_data, 0); in phpdbg_execute_ex() 1735 if (PHPDBG_G(seek_ex) != execute_data) { in phpdbg_execute_ex() 1800 && (brake = phpdbg_find_breakpoint(execute_data)) in phpdbg_execute_ex() 1817 PHPDBG_G(last_line) = execute_data->opline->lineno; in phpdbg_execute_ex() 1820 if ((execute_data->opline->opcode == ZEND_DO_FCALL || in phpdbg_execute_ex() 1821 execute_data->opline->opcode == ZEND_DO_UCALL || in phpdbg_execute_ex() [all …]
|
H A D | phpdbg_bp.c | 588 zend_execute_data *execute_data = EG(current_execute_data); in phpdbg_resolve_opline_break() local 590 if (ZEND_USER_CODE(execute_data->func->common.type)) { in phpdbg_resolve_opline_break() 591 zend_op_array *op_array = &execute_data->func->op_array; in phpdbg_resolve_opline_break() 600 } while ((execute_data = execute_data->prev_execute_data) != NULL); in phpdbg_resolve_opline_break() 1025 zend_function *function = execute_data->func; in phpdbg_find_breakpoint_param() 1044 return param->type == STR_PARAM || execute_data->opline - ops->opcodes == param->num; in phpdbg_find_breakpoint_param() 1085 return ((zend_ulong)(phpdbg_opline_ptr_t)execute_data->opline == param->addr); in phpdbg_find_breakpoint_param() 1111 if (!phpdbg_find_breakpoint_param(&bp->param, execute_data)) { in phpdbg_find_conditional_breakpoint() 1153 (base = phpdbg_find_conditional_breakpoint(execute_data))) { in phpdbg_find_breakpoint() 1162 zend_op_array *op_array = &execute_data->func->op_array; in phpdbg_find_breakpoint() [all …]
|
H A D | phpdbg_prompt.h | 66 void phpdbg_execute_ex(zend_execute_data *execute_data);
|
/php-src/sapi/fpm/fpm/ |
H A D | fpm_php_trace.c | 43 long execute_data; in fpm_php_trace_dump() local 69 execute_data = l; in fpm_php_trace_dump() 71 while (execute_data) { in fpm_php_trace_dump() 78 if (0 > fpm_trace_get_long(execute_data + offsetof(zend_execute_data, func), &l)) { in fpm_php_trace_dump() 93 if (0 > fpm_trace_get_long(execute_data + offsetof(zend_execute_data, This.u1.type_info), &l)) { in fpm_php_trace_dump() 114 fprintf(slowlog, "[0x%" PTR_FMT "lx] ", execute_data); in fpm_php_trace_dump() 120 if (0 > fpm_trace_get_long(execute_data + offsetof(zend_execute_data, prev_execute_data), &l)) { in fpm_php_trace_dump() 124 execute_data = prev = l; in fpm_php_trace_dump()
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit_vm_helpers.c | 59 OBJ_RELEASE(Z_OBJ(execute_data->This)); in zend_jit_leave_nested_func_helper() 67 old_execute_data = execute_data; in zend_jit_leave_nested_func_helper() 68 execute_data = EX(prev_execute_data); in zend_jit_leave_nested_func_helper() 104 execute_data = EG(current_execute_data); in zend_jit_leave_top_func_helper() 626 execute_data = ex; 630 zend_execute_data *execute_data = ex; local 652 execute_data = save_execute_data; 662 execute_data = save_execute_data; 673 execute_data = save_execute_data; 1110 prev_execute_data = execute_data; [all …]
|
H A D | zend_jit_helpers.c | 466 zend_execute_data *execute_data; in zend_jit_fetch_dim_r_helper() local 486 execute_data = EG(current_execute_data); in zend_jit_fetch_dim_r_helper() 546 execute_data = EG(current_execute_data); in zend_jit_fetch_dim_r_helper() 608 zend_execute_data *execute_data; in zend_jit_fetch_dim_is_helper() local 628 execute_data = EG(current_execute_data); in zend_jit_fetch_dim_is_helper() 688 execute_data = EG(current_execute_data); in zend_jit_fetch_dim_is_helper() 854 zend_execute_data *execute_data; in zend_jit_fetch_dim_rw_helper() local 869 execute_data = EG(current_execute_data); in zend_jit_fetch_dim_rw_helper() 926 execute_data = EG(current_execute_data); in zend_jit_fetch_dim_rw_helper() 986 zend_execute_data *execute_data; in zend_jit_fetch_dim_w_helper() local [all …]
|
/php-src/win32/ |
H A D | signal.c | 27 static void (*orig_interrupt_function)(zend_execute_data *execute_data); 29 static void php_win32_signal_ctrl_interrupt_function(zend_execute_data *execute_data) in php_win32_signal_ctrl_interrupt_function() argument 42 orig_interrupt_function(execute_data); in php_win32_signal_ctrl_interrupt_function()
|
/php-src/Zend/tests/ |
H A D | strlen.phpt | 2 Fixed execute_data corruption with __toString()
|