php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
zend_execute.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Zend Engine |
4 +----------------------------------------------------------------------+
5 | Copyright (c) Zend Technologies Ltd. (http://www.zend.com) |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 2.00 of the Zend license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.zend.com/license/2_00.txt. |
11 | If you did not receive a copy of the Zend license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@zend.com so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
15 | Authors: Andi Gutmans <andi@php.net> |
16 | Zeev Suraski <zeev@php.net> |
17 | Dmitry Stogov <dmitry@php.net> |
18 +----------------------------------------------------------------------+
19*/
20
21#ifndef ZEND_EXECUTE_H
22#define ZEND_EXECUTE_H
23
24#include "zend_compile.h"
25#include "zend_hash.h"
26#include "zend_operators.h"
27#include "zend_variables.h"
28
29#include <stdint.h>
30
32struct _zend_fcall_info;
35
36/* The lc_name may be stack allocated! */
38
39void init_executor(void);
40void shutdown_executor(void);
41void shutdown_destructors(void);
42ZEND_API void zend_shutdown_executor_values(bool fast_shutdown);
43
55ZEND_API zend_result zend_eval_string(const char *str, zval *retval_ptr, const char *string_name);
56ZEND_API zend_result zend_eval_stringl(const char *str, size_t str_len, zval *retval_ptr, const char *string_name);
57ZEND_API zend_result zend_eval_string_ex(const char *str, zval *retval_ptr, const char *string_name, bool handle_exceptions);
58ZEND_API zend_result zend_eval_stringl_ex(const char *str, size_t str_len, zval *retval_ptr, const char *string_name, bool handle_exceptions);
59
60/* export zend_pass_function to allow comparisons against it */
62
70
72
79
85
87ZEND_API ZEND_COLD void ZEND_FASTCALL zend_readonly_property_modification_error_ex(const char *class_name, const char *prop_name);
89
91
93
95
98
99ZEND_API bool zend_verify_scalar_type_hint(uint32_t type_mask, zval *arg, bool strict, bool is_internal_arg);
101 const zend_function *zf, const zend_arg_info *arg_info, uint32_t arg_num, zval *value);
103 const zend_function *zf, zval *value);
105 const zend_function *zf);
108 zend_type *type, zval *arg, zend_reference *ref, void **cache_slot, bool is_return_type);
109
110#if ZEND_DEBUG
111ZEND_API bool zend_internal_call_should_throw(zend_function *fbc, zend_execute_data *call);
112ZEND_API ZEND_COLD void zend_internal_call_arginfo_violation(zend_function *fbc);
113ZEND_API bool zend_verify_internal_return_type(zend_function *zf, zval *ret);
114#endif
115
116#define ZEND_REF_TYPE_SOURCES(ref) \
117 (ref)->sources
118
119#define ZEND_REF_HAS_TYPE_SOURCES(ref) \
120 (ZEND_REF_TYPE_SOURCES(ref).ptr != NULL)
121
122#define ZEND_REF_FIRST_SOURCE(ref) \
123 (ZEND_PROPERTY_INFO_SOURCE_IS_LIST((ref)->sources.list) \
124 ? ZEND_PROPERTY_INFO_SOURCE_TO_LIST((ref)->sources.list)->ptr[0] \
125 : (ref)->sources.ptr)
126
127
130
131ZEND_API zval* zend_assign_to_typed_ref(zval *variable_ptr, zval *value, uint8_t value_type, bool strict);
132ZEND_API zval* zend_assign_to_typed_ref_ex(zval *variable_ptr, zval *value, uint8_t value_type, bool strict, zend_refcounted **garbage_ptr);
133
134static zend_always_inline void zend_copy_to_variable(zval *variable_ptr, zval *value, uint8_t value_type)
135{
136 zend_refcounted *ref = NULL;
137
138 if (ZEND_CONST_COND(value_type & (IS_VAR|IS_CV), 1) && Z_ISREF_P(value)) {
139 ref = Z_COUNTED_P(value);
141 }
142
144 if (ZEND_CONST_COND(value_type == IS_CONST, 0)) {
147 }
148 } else if (value_type & (IS_CONST|IS_CV)) {
151 }
152 } else if (ZEND_CONST_COND(value_type == IS_VAR, 1) && UNEXPECTED(ref)) {
153 if (UNEXPECTED(GC_DELREF(ref) == 0)) {
154 efree_size(ref, sizeof(zend_reference));
155 } else if (Z_OPT_REFCOUNTED_P(variable_ptr)) {
157 }
158 }
159}
160
161static zend_always_inline zval* zend_assign_to_variable(zval *variable_ptr, zval *value, uint8_t value_type, bool strict)
162{
163 do {
166
167 if (Z_ISREF_P(variable_ptr)) {
169 return zend_assign_to_typed_ref(variable_ptr, value, value_type, strict);
170 }
171
174 break;
175 }
176 }
178 zend_copy_to_variable(variable_ptr, value, value_type);
180 return variable_ptr;
181 }
182 } while (0);
183
184 zend_copy_to_variable(variable_ptr, value, value_type);
185 return variable_ptr;
186}
187
188static zend_always_inline zval* zend_assign_to_variable_ex(zval *variable_ptr, zval *value, zend_uchar value_type, bool strict, zend_refcounted **garbage_ptr)
189{
190 do {
192 if (Z_ISREF_P(variable_ptr)) {
194 return zend_assign_to_typed_ref_ex(variable_ptr, value, value_type, strict, garbage_ptr);
195 }
196
199 break;
200 }
201 }
202 *garbage_ptr = Z_COUNTED_P(variable_ptr);
203 }
204 } while (0);
205
206 zend_copy_to_variable(variable_ptr, value, value_type);
207 return variable_ptr;
208}
209
213
214/* dedicated Zend executor functions - do not use! */
220
221/* Ensure the correct alignment before slots calculation */
223 "zval must be aligned by ZEND_MM_ALIGNMENT");
224/* A number of call frame slots (zvals) reserved for _zend_vm_stack. */
225#define ZEND_VM_STACK_HEADER_SLOTS \
226 ((sizeof(struct _zend_vm_stack) + sizeof(zval) - 1) / sizeof(zval))
227
228#define ZEND_VM_STACK_ELEMENTS(stack) \
229 (((zval*)(stack)) + ZEND_VM_STACK_HEADER_SLOTS)
230
231/*
232 * In general in RELEASE build ZEND_ASSERT() must be zero-cost, but for some
233 * reason, GCC generated worse code, performing CSE on assertion code and the
234 * following "slow path" and moving memory read operations from slow path into
235 * common header. This made a degradation for the fast path.
236 * The following "#if ZEND_DEBUG" eliminates it.
237 */
238#if ZEND_DEBUG
239# define ZEND_ASSERT_VM_STACK(stack) ZEND_ASSERT(stack->top > (zval *) stack && stack->end > (zval *) stack && stack->top <= stack->end)
240# define ZEND_ASSERT_VM_STACK_GLOBAL ZEND_ASSERT(EG(vm_stack_top) > (zval *) EG(vm_stack) && EG(vm_stack_end) > (zval *) EG(vm_stack) && EG(vm_stack_top) <= EG(vm_stack_end))
241#else
242# define ZEND_ASSERT_VM_STACK(stack)
243# define ZEND_ASSERT_VM_STACK_GLOBAL
244#endif
245
247ZEND_API void zend_vm_stack_init_ex(size_t page_size);
250
251static zend_always_inline zend_vm_stack zend_vm_stack_new_page(size_t size, zend_vm_stack prev) {
253
254 page->top = ZEND_VM_STACK_ELEMENTS(page);
255 page->end = (zval*)((char*)page + size);
256 page->prev = prev;
257 return page;
258}
259
260static zend_always_inline void zend_vm_init_call_frame(zend_execute_data *call, uint32_t call_info, zend_function *func, uint32_t num_args, void *object_or_called_scope)
261{
262 ZEND_ASSERT(!func->common.scope || object_or_called_scope);
263 call->func = func;
264 Z_PTR(call->This) = object_or_called_scope;
267}
268
269static zend_always_inline zend_execute_data *zend_vm_stack_push_call_frame_ex(uint32_t used_stack, uint32_t call_info, zend_function *func, uint32_t num_args, void *object_or_called_scope)
270{
271 zend_execute_data *call = (zend_execute_data*)EG(vm_stack_top);
272
274
275 if (UNEXPECTED(used_stack > (size_t)(((char*)EG(vm_stack_end)) - (char*)call))) {
278 zend_vm_init_call_frame(call, call_info | ZEND_CALL_ALLOCATED, func, num_args, object_or_called_scope);
279 return call;
280 } else {
281 EG(vm_stack_top) = (zval*)((char*)call + used_stack);
282 zend_vm_init_call_frame(call, call_info, func, num_args, object_or_called_scope);
283 return call;
284 }
285}
286
287static zend_always_inline uint32_t zend_vm_calc_used_stack(uint32_t num_args, zend_function *func)
288{
289 uint32_t used_stack = ZEND_CALL_FRAME_SLOT + num_args + func->common.T;
290
291 if (EXPECTED(ZEND_USER_CODE(func->type))) {
292 used_stack += func->op_array.last_var - MIN(func->op_array.num_args, num_args);
293 }
294 return used_stack * sizeof(zval);
295}
296
297static zend_always_inline zend_execute_data *zend_vm_stack_push_call_frame(uint32_t call_info, zend_function *func, uint32_t num_args, void *object_or_called_scope)
298{
299 uint32_t used_stack = zend_vm_calc_used_stack(num_args, func);
300
301 return zend_vm_stack_push_call_frame_ex(used_stack, call_info,
302 func, num_args, object_or_called_scope);
303}
304
305static zend_always_inline void zend_vm_stack_free_extra_args_ex(uint32_t call_info, zend_execute_data *call)
306{
308 uint32_t count = ZEND_CALL_NUM_ARGS(call) - call->func->op_array.num_args;
309 zval *p = ZEND_CALL_VAR_NUM(call, call->func->op_array.last_var + call->func->op_array.T);
310 do {
311 i_zval_ptr_dtor(p);
312 p++;
313 } while (--count);
314 }
315}
316
317static zend_always_inline void zend_vm_stack_free_extra_args(zend_execute_data *call)
318{
319 zend_vm_stack_free_extra_args_ex(ZEND_CALL_INFO(call), call);
320}
321
322static zend_always_inline void zend_vm_stack_free_args(zend_execute_data *call)
323{
324 uint32_t num_args = ZEND_CALL_NUM_ARGS(call);
325
326 if (EXPECTED(num_args > 0)) {
327 zval *p = ZEND_CALL_ARG(call, 1);
328
329 do {
330 zval_ptr_dtor_nogc(p);
331 p++;
332 } while (--num_args);
333 }
334}
335
336static zend_always_inline void zend_vm_stack_free_call_frame_ex(uint32_t call_info, zend_execute_data *call)
337{
339
341 zend_vm_stack p = EG(vm_stack);
342 zend_vm_stack prev = p->prev;
343
345 EG(vm_stack_top) = prev->top;
346 EG(vm_stack_end) = prev->end;
347 EG(vm_stack) = prev;
348 efree(p);
349 } else {
350 EG(vm_stack_top) = (zval*)call;
351 }
352
354}
355
356static zend_always_inline void zend_vm_stack_free_call_frame(zend_execute_data *call)
357{
358 zend_vm_stack_free_call_frame_ex(ZEND_CALL_INFO(call), call);
359}
360
362 zend_execute_data *call, uint32_t passed_args, uint32_t additional_args);
363
364static zend_always_inline void zend_vm_stack_extend_call_frame(
365 zend_execute_data **call, uint32_t passed_args, uint32_t additional_args)
366{
367 if (EXPECTED((uint32_t)(EG(vm_stack_end) - EG(vm_stack_top)) > additional_args)) {
368 EG(vm_stack_top) += additional_args;
369 } else {
370 *call = zend_vm_stack_copy_call_frame(*call, passed_args, additional_args);
371 }
372}
373
375
376/* services */
377ZEND_API const char *get_active_class_name(const char **space);
378ZEND_API const char *get_active_function_name(void);
379ZEND_API const char *get_active_function_arg_name(uint32_t arg_num);
380ZEND_API const char *get_function_arg_name(const zend_function *func, uint32_t arg_num);
382
383static zend_always_inline zend_function *zend_active_function(void)
384{
385 zend_function *func = EG(current_execute_data)->func;
386 if (ZEND_USER_CODE(func->type)) {
387 return zend_active_function_ex(EG(current_execute_data));
388 } else {
389 return func;
390 }
391}
392
395ZEND_API const char *zend_get_executed_filename(void);
399ZEND_API bool zend_is_executing(void);
401
402ZEND_API void zend_set_timeout(zend_long seconds, bool reset_signals);
405ZEND_API zend_class_entry *zend_fetch_class(zend_string *class_name, uint32_t fetch_type);
408
412
414
415ZEND_API zval* zend_get_compiled_variable_value(const zend_execute_data *execute_data_ptr, uint32_t var);
416
418
419#define ZEND_USER_OPCODE_CONTINUE 0 /* execute next opcode */
420#define ZEND_USER_OPCODE_RETURN 1 /* exit from executor (return from function) */
421#define ZEND_USER_OPCODE_DISPATCH 2 /* call original opcode handler */
422#define ZEND_USER_OPCODE_ENTER 3 /* enter into new op_array without recursion */
423#define ZEND_USER_OPCODE_LEAVE 4 /* return to calling op_array within the same executor */
424
425#define ZEND_USER_OPCODE_DISPATCH_TO 0x100 /* call original handler of returned opcode */
426
429
430ZEND_API zval *zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data);
431
435ZEND_API void zend_cleanup_unfinished_execution(zend_execute_data *execute_data, uint32_t op_num, uint32_t catch_op_num);
438
440
442 zend_execute_data **call_ptr, zend_string *arg_name,
443 uint32_t *arg_num_ptr, void **cache_slot);
445
446#define CACHE_ADDR(num) \
447 ((void**)((char*)EX(run_time_cache) + (num)))
448
449#define CACHED_PTR(num) \
450 ((void**)((char*)EX(run_time_cache) + (num)))[0]
451
452#define CACHE_PTR(num, ptr) do { \
453 ((void**)((char*)EX(run_time_cache) + (num)))[0] = (ptr); \
454 } while (0)
455
456#define CACHED_POLYMORPHIC_PTR(num, ce) \
457 (EXPECTED(((void**)((char*)EX(run_time_cache) + (num)))[0] == (void*)(ce)) ? \
458 ((void**)((char*)EX(run_time_cache) + (num)))[1] : \
459 NULL)
460
461#define CACHE_POLYMORPHIC_PTR(num, ce, ptr) do { \
462 void **slot = (void**)((char*)EX(run_time_cache) + (num)); \
463 slot[0] = (ce); \
464 slot[1] = (ptr); \
465 } while (0)
466
467#define CACHED_PTR_EX(slot) \
468 (slot)[0]
469
470#define CACHE_PTR_EX(slot, ptr) do { \
471 (slot)[0] = (ptr); \
472 } while (0)
473
474#define CACHED_POLYMORPHIC_PTR_EX(slot, ce) \
475 (EXPECTED((slot)[0] == (ce)) ? (slot)[1] : NULL)
476
477#define CACHE_POLYMORPHIC_PTR_EX(slot, ce, ptr) do { \
478 (slot)[0] = (ce); \
479 (slot)[1] = (ptr); \
480 } while (0)
481
482#define CACHE_SPECIAL (1<<0)
483
484#define IS_SPECIAL_CACHE_VAL(ptr) \
485 (((uintptr_t)(ptr)) & CACHE_SPECIAL)
486
487#define ENCODE_SPECIAL_CACHE_NUM(num) \
488 ((void*)((((uintptr_t)(num)) << 1) | CACHE_SPECIAL))
489
490#define DECODE_SPECIAL_CACHE_NUM(ptr) \
491 (((uintptr_t)(ptr)) >> 1)
492
493#define ENCODE_SPECIAL_CACHE_PTR(ptr) \
494 ((void*)(((uintptr_t)(ptr)) | CACHE_SPECIAL))
495
496#define DECODE_SPECIAL_CACHE_PTR(ptr) \
497 ((void*)(((uintptr_t)(ptr)) & ~CACHE_SPECIAL))
498
499#define SKIP_EXT_OPLINE(opline) do { \
500 while (UNEXPECTED((opline)->opcode >= ZEND_EXT_STMT \
501 && (opline)->opcode <= ZEND_TICKS)) { \
502 (opline)--; \
503 } \
504 } while (0)
505
506#define ZEND_CLASS_HAS_TYPE_HINTS(ce) ((ce->ce_flags & ZEND_ACC_HAS_TYPE_HINTS) == ZEND_ACC_HAS_TYPE_HINTS)
507#define ZEND_CLASS_HAS_READONLY_PROPS(ce) ((ce->ce_flags & ZEND_ACC_HAS_READONLY_PROPS) == ZEND_ACC_HAS_READONLY_PROPS)
508
509
512
513ZEND_API bool zend_verify_property_type(const zend_property_info *info, zval *property, bool strict);
516
517#define ZEND_REF_ADD_TYPE_SOURCE(ref, source) \
518 zend_ref_add_type_source(&ZEND_REF_TYPE_SOURCES(ref), source)
519
520#define ZEND_REF_DEL_TYPE_SOURCE(ref, source) \
521 zend_ref_del_type_source(&ZEND_REF_TYPE_SOURCES(ref), source)
522
523#define ZEND_REF_FOREACH_TYPE_SOURCES(ref, prop) do { \
524 zend_property_info_source_list *_source_list = &ZEND_REF_TYPE_SOURCES(ref); \
525 zend_property_info **_prop, **_end; \
526 zend_property_info_list *_list; \
527 if (_source_list->ptr) { \
528 if (ZEND_PROPERTY_INFO_SOURCE_IS_LIST(_source_list->list)) { \
529 _list = ZEND_PROPERTY_INFO_SOURCE_TO_LIST(_source_list->list); \
530 _prop = _list->ptr; \
531 _end = _list->ptr + _list->num; \
532 } else { \
533 _prop = &_source_list->ptr; \
534 _end = _prop + 1; \
535 } \
536 for (; _prop < _end; _prop++) { \
537 prop = *_prop; \
538
539#define ZEND_REF_FOREACH_TYPE_SOURCES_END() \
540 } \
541 } \
542 } while (0)
543
545
546/* Call this to handle the timeout or the interrupt function. It will set
547 * EG(vm_interrupt) to false.
548 */
550
551static zend_always_inline void *zend_get_bad_ptr(void)
552{
554 return NULL;
555}
556
558
559#endif /* ZEND_EXECUTE_H */
size_t len
Definition apprentice.c:174
prev(array|object &$array)
constant(string $name)
count(Countable|array $value, int $mode=COUNT_NORMAL)
zend_ffi_type * type
Definition ffi.c:3812
zval * zv
Definition ffi.c:3975
new_type size
Definition ffi.c:4365
zval * arg
Definition ffi.c:3975
HashTable * ht
Definition ffi.c:4838
zend_ffi_ctype_name_buf buf
Definition ffi.c:4685
zend_long offset
#define NULL
Definition gdcache.h:45
zend_string * lcname
zend_object * ex
p
Definition session.c:1105
zend_vm_stack prev
Definition dce.c:49
#define efree_size(ptr, size)
Definition zend_alloc.h:138
#define ZEND_MM_ALIGNED_SIZE(size)
Definition zend_alloc.h:35
#define efree(ptr)
Definition zend_alloc.h:155
#define emalloc(size)
Definition zend_alloc.h:151
struct _zval_struct zval
uint32_t num_args
execute_data func
struct _zend_op zend_op
#define ZEND_USER_CODE(type)
#define ZEND_CALL_ALLOCATED
#define IS_CONST
#define IS_VAR
#define ZEND_CALL_FRAME_SLOT
int(* user_opcode_handler_t)(zend_execute_data *execute_data)
struct _zend_op_array zend_op_array
union _znode_op znode_op
struct _zend_class_constant zend_class_constant
struct _zend_property_info zend_property_info
#define ZEND_CALL_NUM_ARGS(call)
#define ZEND_CALL_INFO(call)
struct _zend_arg_info zend_arg_info
#define ZEND_CALL_FREE_EXTRA_ARGS
#define IS_CV
struct _zend_internal_function zend_internal_function
#define ZEND_CALL_VAR_NUM(call, n)
#define ZEND_CALL_ARG(call, n)
#define ZEND_API
ZEND_API void zend_init_func_execute_data(zend_execute_data *ex, zend_op_array *op_array, zval *return_value)
ZEND_API const zend_internal_function zend_pass_function
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_deprecated_class_constant(const zend_class_constant *c, const zend_string *constant_name)
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_deprecated_function(const zend_function *fbc)
ZEND_API void execute_internal(zend_execute_data *execute_data, zval *return_value)
ZEND_API void zend_init_execute_data(zend_execute_data *execute_data, zend_op_array *op_array, zval *return_value)
ZEND_API bool ZEND_FASTCALL zend_verify_ref_assignable_zval(zend_reference *ref, zval *zv, bool strict)
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_use_resource_as_offset(const zval *dim)
ZEND_COLD void ZEND_FASTCALL zend_param_must_be_ref(const zend_function *func, uint32_t arg_num)
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_missing_arg_error(zend_execute_data *execute_data)
ZEND_API void zend_init_code_execute_data(zend_execute_data *execute_data, zend_op_array *op_array, zval *return_value)
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_false_to_array_deprecated(void)
ZEND_API void ZEND_FASTCALL zend_free_extra_named_params(zend_array *extra_named_params)
ZEND_API HashTable * zend_unfinished_execution_gc_ex(zend_execute_data *execute_data, zend_execute_data *call, zend_get_gc_buffer *gc_buffer, bool suspended_by_yield)
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_readonly_property_indirect_modification_error(const zend_property_info *info)
ZEND_API zend_class_entry * zend_get_called_scope(zend_execute_data *ex)
ZEND_API bool zend_verify_ref_array_assignable(zend_reference *ref)
void init_executor(void)
ZEND_API void zend_vm_stack_init_ex(size_t page_size)
ZEND_API void zend_unfinished_calls_gc(zend_execute_data *execute_data, zend_execute_data *call, uint32_t op_num, zend_get_gc_buffer *buf)
#define ZEND_REF_HAS_TYPE_SOURCES(ref)
ZEND_API zend_class_entry * zend_lookup_class(zend_string *name)
ZEND_API bool zend_check_user_type_slow(zend_type *type, zval *arg, zend_reference *ref, void **cache_slot, bool is_return_type)
ZEND_API void ZEND_FASTCALL zend_init_func_run_time_cache(zend_op_array *op_array)
ZEND_API zval * zend_assign_to_typed_ref_ex(zval *variable_ptr, zval *value, uint8_t value_type, bool strict, zend_refcounted **garbage_ptr)
ZEND_COLD void zend_verify_class_constant_type_error(const zend_class_constant *c, const zend_string *name, const zval *constant)
ZEND_API void zend_frameless_observed_call(zend_execute_data *execute_data)
ZEND_API ZEND_COLD zval *ZEND_FASTCALL zend_undefined_offset_write(HashTable *ht, zend_long lval)
ZEND_API const char * get_function_arg_name(const zend_function *func, uint32_t arg_num)
ZEND_API const char * get_active_function_name(void)
ZEND_API zend_result ZEND_FASTCALL zval_update_constant(zval *pp)
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_readonly_property_modification_error_ex(const char *class_name, const char *prop_name)
ZEND_API uint32_t zend_get_executed_lineno(void)
ZEND_API zend_class_entry * zend_get_executed_scope(void)
#define ZEND_VM_STACK_ELEMENTS(stack)
ZEND_API void zend_clean_and_cache_symbol_table(zend_array *symbol_table)
ZEND_API zend_string * get_function_or_method_name(const zend_function *func)
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_fcall_interrupt(zend_execute_data *call)
ZEND_API ZEND_ATTRIBUTE_DEPRECATED HashTable * zend_unfinished_execution_gc(zend_execute_data *execute_data, zend_execute_data *call, zend_get_gc_buffer *gc_buffer)
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_invalid_class_constant_type_error(uint8_t type)
#define ZEND_ASSERT_VM_STACK_GLOBAL
ZEND_COLD void zend_magic_get_property_type_inconsistency_error(const zend_property_info *info, const zval *property)
ZEND_COLD void zend_match_unhandled_error(const zval *value)
ZEND_API zend_function *ZEND_FASTCALL zend_fetch_function(zend_string *name)
ZEND_API const char * zend_get_executed_filename(void)
void shutdown_destructors(void)
ZEND_API ZEND_COLD void zend_verify_arg_error(const zend_function *zf, const zend_arg_info *arg_info, uint32_t arg_num, zval *value)
void shutdown_executor(void)
ZEND_API void(* zend_execute_ex)(zend_execute_data *execute_data)
ZEND_API void(* zend_execute_internal)(zend_execute_data *execute_data, zval *return_value)
ZEND_API zend_object * zend_get_this_object(zend_execute_data *ex)
ZEND_API bool zend_is_valid_class_name(zend_string *name)
ZEND_API void zend_cleanup_unfinished_execution(zend_execute_data *execute_data, uint32_t op_num, uint32_t catch_op_num)
ZEND_API ZEND_COLD void zend_verify_never_error(const zend_function *zf)
ZEND_API void zend_execute(zend_op_array *op_array, zval *return_value)
ZEND_API void zend_vm_stack_destroy(void)
ZEND_API void zend_vm_stack_init(void)
ZEND_API void execute_ex(zend_execute_data *execute_data)
ZEND_API zend_string * zend_get_executed_filename_ex(void)
ZEND_API zend_class_entry * zend_fetch_class(zend_string *class_name, uint32_t fetch_type)
ZEND_API void zend_set_timeout(zend_long seconds, bool reset_signals)
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_asymmetric_visibility_property_modification_error(const zend_property_info *info, const char *operation)
ZEND_API zend_class_entry * zend_fetch_class_by_name(zend_string *class_name, zend_string *lcname, uint32_t fetch_type)
ZEND_API void ZEND_FASTCALL zend_free_compiled_variables(zend_execute_data *execute_data)
ZEND_API zend_result ZEND_FASTCALL zend_handle_undef_args(zend_execute_data *call)
ZEND_API bool ZEND_FASTCALL zend_verify_prop_assignable_by_ref(const zend_property_info *prop_info, zval *orig_val, bool strict)
ZEND_API zend_function *ZEND_FASTCALL zend_fetch_function_str(const char *name, size_t len)
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_object_released_while_assigning_to_property_error(const zend_property_info *info)
ZEND_API void zend_shutdown_executor_values(bool fast_shutdown)
ZEND_API bool zend_gcc_global_regs(void)
ZEND_API zval * zend_assign_to_typed_ref(zval *variable_ptr, zval *value, uint8_t value_type, bool strict)
ZEND_API ZEND_COLD void zend_throw_ref_type_error_type(const zend_property_info *prop1, const zend_property_info *prop2, const zval *zv)
ZEND_API zend_result ZEND_FASTCALL zval_update_constant_with_ctx(zval *pp, zend_class_entry *scope, zend_ast_evaluate_ctx *ctx)
ZEND_API void zend_fetch_dimension_const(zval *result, zval *container, zval *dim, int type)
ZEND_API const char * get_active_function_arg_name(uint32_t arg_num)
ZEND_API const char * get_active_class_name(const char **space)
ZEND_API zend_result ZEND_FASTCALL zval_update_constant_ex(zval *pp, zend_class_entry *scope)
ZEND_API void ZEND_FASTCALL zend_ref_add_type_source(zend_property_info_source_list *source_list, zend_property_info *prop)
ZEND_API zval * zend_get_compiled_variable_value(const zend_execute_data *execute_data_ptr, uint32_t var)
ZEND_API zend_result zend_eval_string(const char *str, zval *retval_ptr, const char *string_name)
ZEND_API bool zend_verify_scalar_type_hint(uint32_t type_mask, zval *arg, bool strict, bool is_internal_arg)
ZEND_API bool zend_is_executing(void)
ZEND_API zend_class_entry *(* zend_autoload)(zend_string *name, zend_string *lc_name)
ZEND_API ZEND_COLD zval *ZEND_FASTCALL zend_undefined_index_write(HashTable *ht, zend_string *offset)
ZEND_API ZEND_COLD void zend_wrong_string_offset_error(void)
ZEND_API bool ZEND_FASTCALL zend_verify_prop_assignable_by_ref_ex(const zend_property_info *prop_info, zval *orig_val, bool strict, zend_verify_prop_assignable_by_ref_context context)
ZEND_API zend_never_inline ZEND_COLD void ZEND_FASTCALL zend_call_stack_size_error(void)
ZEND_API void zend_unset_timeout(void)
ZEND_API bool zend_verify_property_type(const zend_property_info *info, zval *property, bool strict)
ZEND_API user_opcode_handler_t zend_get_user_opcode_handler(uint8_t opcode)
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_cannot_add_element(void)
ZEND_API ZEND_NORETURN void ZEND_FASTCALL zend_timeout(void)
ZEND_API void ZEND_FASTCALL zend_ref_del_type_source(zend_property_info_source_list *source_list, const zend_property_info *prop)
ZEND_COLD void zend_verify_property_type_error(const zend_property_info *info, const zval *property)
ZEND_API bool zend_verify_class_constant_type(zend_class_constant *c, const zend_string *name, zval *constant)
ZEND_API bool ZEND_FASTCALL zend_asymmetric_property_has_set_access(const zend_property_info *prop_info)
zend_execute_data * zend_vm_stack_copy_call_frame(zend_execute_data *call, uint32_t passed_args, uint32_t additional_args)
ZEND_API zval * zend_get_zval_ptr(const zend_op *opline, int op_type, const znode_op *node, const zend_execute_data *execute_data)
ZEND_API zend_string * get_active_function_or_method_name(void)
ZEND_API zend_class_entry * zend_fetch_class_with_scope(zend_string *class_name, uint32_t fetch_type, zend_class_entry *scope)
ZEND_API zend_result zend_eval_stringl_ex(const char *str, size_t str_len, zval *retval_ptr, const char *string_name, bool handle_exceptions)
ZEND_API void * zend_vm_stack_extend(size_t size)
ZEND_API zend_result zend_eval_stringl(const char *str, size_t str_len, zval *retval_ptr, const char *string_name)
ZEND_API zend_result zend_eval_string_ex(const char *str, zval *retval_ptr, const char *string_name, bool handle_exceptions)
ZEND_API ZEND_COLD void zend_throw_ref_type_error_zval(const zend_property_info *prop, const zval *zv)
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_cannot_pass_by_reference(uint32_t arg_num)
ZEND_API ZEND_COLD void ZEND_FASTCALL zend_readonly_property_modification_error(const zend_property_info *info)
zval *ZEND_FASTCALL zend_handle_named_arg(zend_execute_data **call_ptr, zend_string *arg_name, uint32_t *arg_num_ptr, void **cache_slot)
ZEND_API zend_result zend_set_user_opcode_handler(uint8_t opcode, user_opcode_handler_t handler)
zend_verify_prop_assignable_by_ref_context
@ ZEND_VERIFY_PROP_ASSIGNABLE_BY_REF_CONTEXT_MAGIC_GET
@ ZEND_VERIFY_PROP_ASSIGNABLE_BY_REF_CONTEXT_ASSIGNMENT
ZEND_API ZEND_COLD void zend_verify_return_error(const zend_function *zf, zval *value)
ZEND_API zend_class_entry * zend_lookup_class_ex(zend_string *name, zend_string *lcname, uint32_t flags)
ZEND_API zend_function * zend_active_function_ex(zend_execute_data *execute_data)
union _zend_function zend_function
struct _zend_vm_stack * zend_vm_stack
#define EG(v)
int32_t zend_long
Definition zend_long.h:42
struct _zend_string zend_string
#define END_EXTERN_C()
#define ZEND_ATTRIBUTE_DEPRECATED
#define zend_never_inline
#define MIN(a, b)
#define EXPECTED(condition)
#define zend_always_inline
#define ZEND_CONST_COND(_condition, _default)
#define ZEND_FASTCALL
#define ZEND_STATIC_ASSERT(c, m)
#define ZEND_ASSERT(c)
#define ZEND_UNREACHABLE()
#define ZEND_COLD
#define UNEXPECTED(condition)
#define ZEND_NORETURN
#define BEGIN_EXTERN_C()
struct _zend_array zend_array
struct _zend_class_entry zend_class_entry
struct _zend_object zend_object
#define Z_ISREF_P(zval_p)
Definition zend_types.h:954
#define Z_REFVAL_P(zval_p)
#define GC_DTOR_NO_REF(p)
Definition zend_types.h:726
#define Z_OPT_REFCOUNTED_P(zval_p)
Definition zend_types.h:944
#define Z_REFCOUNTED_P(zval_p)
Definition zend_types.h:921
struct _zend_array HashTable
Definition zend_types.h:386
#define Z_COUNTED_P(zval_p)
Definition zend_types.h:699
#define GC_DELREF(p)
Definition zend_types.h:710
#define Z_ADDREF_P(pz)
#define Z_PTR(zval)
struct _zend_refcounted zend_refcounted
Definition zend_types.h:95
#define Z_REF_P(zval_p)
ZEND_RESULT_CODE zend_result
Definition zend_types.h:64
unsigned char zend_uchar
Definition zend_types.h:57
struct _zend_execute_data zend_execute_data
Definition zend_types.h:91
#define ZVAL_COPY_VALUE(z, v)
struct _zend_reference zend_reference
Definition zend_types.h:100
container
uint32_t call_info
zval * return_value
zend_property_info * prop_info
retval_ptr
uint32_t arg_num
zval * dim
zend_string * name
fbc internal_function handler(call, ret)
zend_function * fbc
bool result
zval * variable_ptr
execute_data
zend_refcounted * garbage
zval * ret
value
zend_execute_data * call
property
new_op_array scope