php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
zend.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 +----------------------------------------------------------------------+
18*/
19
20#ifndef ZEND_H
21#define ZEND_H
22
23#define ZEND_VERSION "4.4.8"
24
25#define ZEND_ENGINE_3
26
27#include "zend_types.h"
28#include "zend_map_ptr.h"
29#include "zend_errors.h"
30#include "zend_alloc.h"
31#include "zend_llist.h"
32#include "zend_string.h"
33#include "zend_hash.h"
34#include "zend_ast.h"
35#include "zend_gc.h"
36#include "zend_variables.h"
37#include "zend_iterators.h"
38#include "zend_stream.h"
41#include "zend_signal.h"
43
44#define zend_sprintf sprintf
45
46#define HANDLE_BLOCK_INTERRUPTIONS() ZEND_SIGNAL_BLOCK_INTERRUPTIONS()
47#define HANDLE_UNBLOCK_INTERRUPTIONS() ZEND_SIGNAL_UNBLOCK_INTERRUPTIONS()
48
49#define INTERNAL_FUNCTION_PARAMETERS zend_execute_data *execute_data, zval *return_value
50#define INTERNAL_FUNCTION_PARAM_PASSTHRU execute_data, return_value
51
52#define USED_RET() \
53 (!EX(prev_execute_data) || \
54 !ZEND_USER_CODE(EX(prev_execute_data)->func->common.type) || \
55 (EX(prev_execute_data)->opline->result_type != IS_UNUSED))
56
57#ifdef ZEND_ENABLE_STATIC_TSRMLS_CACHE
58#define ZEND_TSRMG TSRMG_STATIC
59#define ZEND_TSRMG_FAST TSRMG_FAST_STATIC
60#define ZEND_TSRMLS_CACHE_EXTERN() TSRMLS_CACHE_EXTERN()
61#define ZEND_TSRMLS_CACHE_DEFINE() TSRMLS_CACHE_DEFINE()
62#define ZEND_TSRMLS_CACHE_UPDATE() TSRMLS_CACHE_UPDATE()
63#define ZEND_TSRMLS_CACHE TSRMLS_CACHE
64#else
65#define ZEND_TSRMG TSRMG
66#define ZEND_TSRMG_FAST TSRMG_FAST
67#define ZEND_TSRMLS_CACHE_EXTERN()
68#define ZEND_TSRMLS_CACHE_DEFINE()
69#define ZEND_TSRMLS_CACHE_UPDATE()
70#define ZEND_TSRMLS_CACHE
71#endif
72
73#ifndef ZEND_COMPILE_DL_EXT
74TSRMLS_MAIN_CACHE_EXTERN()
75#else
77#endif
78
79struct _zend_serialize_data;
80struct _zend_unserialize_data;
81
82typedef struct _zend_serialize_data zend_serialize_data;
83typedef struct _zend_unserialize_data zend_unserialize_data;
84
89
94
100
114
121
126
128
135
146
148 char type;
150 /* class_entry or string depending on ZEND_ACC_LINKED */
151 union {
154 };
156 uint32_t ce_flags;
157
162 ZEND_MAP_PTR_DEF(zval *, static_members_table);
166
169
171
185
187
188 /* allocated only if class implements Iterator or IteratorAggregate interface */
190 /* allocated only if class implements ArrayAccess interface */
192
193 /* handlers */
194 union {
195 zend_object* (*create_object)(zend_class_entry *class_type);
196 int (*interface_gets_implemented)(zend_class_entry *iface, zend_class_entry *class_type); /* a class implements this interface */
197 };
198 zend_object_iterator *(*get_iterator)(zend_class_entry *ce, zval *object, int by_ref);
199 zend_function *(*get_static_method)(zend_class_entry *ce, zend_string* method);
200
201 /* serializer callbacks */
202 int (*serialize)(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data *data);
203 int (*unserialize)(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize_data *data);
204
206 uint32_t num_traits;
209
210 /* class_entry or string(s) depending on ZEND_ACC_LINKED */
211 union {
214 };
215
220
223
225
226 union {
227 struct {
229 uint32_t line_start;
230 uint32_t line_end;
232 struct {
237};
238
243
245 void (*error_function)(int type, zend_string *error_filename, const uint32_t error_lineno, zend_string *message);
246 size_t (*printf_function)(const char *format, ...) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 1, 2);
247 size_t (*write_function)(const char *str, size_t str_length);
248 FILE *(*fopen_function)(zend_string *filename, zend_string **opened_path);
249 void (*message_handler)(zend_long message, const void *data);
250 zval *(*get_configuration_directive)(zend_string *name);
251 void (*ticks_function)(int ticks);
252 void (*on_timeout)(int seconds);
254 void (*printf_to_smart_string_function)(smart_string *buf, const char *format, va_list ap);
255 void (*printf_to_smart_str_function)(smart_str *buf, const char *format, va_list ap);
256 char *(*getenv_function)(const char *name, size_t name_len);
257 zend_string *(*resolve_path_function)(zend_string *filename);
258 zend_result (*random_bytes_function)(void *bytes, size_t size, char *errstr, size_t errstr_size);
261
265
266typedef size_t (*zend_write_func_t)(const char *str, size_t str_length);
267
268#define zend_bailout() _zend_bailout(__FILE__, __LINE__)
269
270#define zend_try \
271 { \
272 JMP_BUF *__orig_bailout = EG(bailout); \
273 JMP_BUF __bailout; \
274 \
275 EG(bailout) = &__bailout; \
276 if (SETJMP(__bailout)==0) {
277#define zend_catch \
278 } else { \
279 EG(bailout) = __orig_bailout;
280#define zend_end_try() \
281 } \
282 EG(bailout) = __orig_bailout; \
283 }
284#define zend_first_try EG(bailout)=NULL; zend_try
285
287void zend_startup(zend_utility_functions *utility_functions);
288void zend_shutdown(void);
291void zend_set_utility_values(zend_utility_values *utility_values);
292void zend_unload_modules(void);
293
294ZEND_API ZEND_COLD ZEND_NORETURN void _zend_bailout(const char *filename, uint32_t lineno);
295ZEND_API size_t zend_get_page_size(void);
296
297ZEND_API size_t zend_vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap);
298ZEND_API size_t zend_spprintf(char **message, size_t max_len, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 3, 4);
299ZEND_API zend_string *zend_vstrpprintf(size_t max_len, const char *format, va_list ap);
300ZEND_API zend_string *zend_strpprintf(size_t max_len, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
301
302/* Same as zend_spprintf and zend_strpprintf, without checking of format validity.
303 * For use with custom printf specifiers such as %H. */
304ZEND_API size_t zend_spprintf_unchecked(char **message, size_t max_len, const char *format, ...);
305ZEND_API zend_string *zend_strpprintf_unchecked(size_t max_len, const char *format, ...);
306
307ZEND_API const char *get_zend_version(void);
308ZEND_API bool zend_make_printable_zval(zval *expr, zval *expr_copy);
309ZEND_API size_t zend_print_zval(zval *expr, int indent);
310ZEND_API void zend_print_zval_r(zval *expr, int indent);
314
315static zend_always_inline size_t zend_print_variable(zval *var) {
316 return zend_print_zval(var, 0);
317}
318
319ZEND_API ZEND_COLD void zend_output_debug_string(bool trigger_break, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
320
321ZEND_API void zend_activate(void);
322ZEND_API void zend_deactivate(void);
327
328ZEND_API void free_estring(char **str_p);
329
331
332/* output support */
333#define ZEND_WRITE(str, str_len) zend_write((str), (str_len))
334#define ZEND_WRITE_EX(str, str_len) write_func((str), (str_len))
335#define ZEND_PUTS(str) zend_write((str), strlen((str)))
336#define ZEND_PUTS_EX(str) write_func((str), strlen((str)))
337#define ZEND_PUTC(c) zend_write(&(c), 1)
338
340extern ZEND_API size_t (*zend_printf)(const char *format, ...) ZEND_ATTRIBUTE_PTR_FORMAT(printf, 1, 2);
342extern ZEND_API FILE *(*zend_fopen)(zend_string *filename, zend_string **opened_path);
343extern ZEND_API void (*zend_ticks_function)(int ticks);
344
345/* Called by the VM in certain places like at the loop header, user function
346 * entry, and after internal function calls, if EG(vm_interrupt) has been set.
347 *
348 * If this is used to switch the EG(current_execute_data), such as implementing
349 * a coroutine scheduler, then it needs to check the top frame to see if it's
350 * an internal function. If an internal function is on top, then the frame
351 * shouldn't be switched away.
352 *
353 * Prior to PHP 8.0, this check was not necessary. In PHP 8.0,
354 * zend_call_function started calling zend_interrupt_function, and in 8.4 the
355 * DO_*CALL* opcodes started calling the zend_interrupt_function while the
356 * internal frame is still on top.
357 */
359
360extern ZEND_API void (*zend_error_cb)(int type, zend_string *error_filename, const uint32_t error_lineno, zend_string *message);
361extern ZEND_API void (*zend_on_timeout)(int seconds);
363extern void (*zend_printf_to_smart_string)(smart_string *buf, const char *format, va_list ap);
364extern void (*zend_printf_to_smart_str)(smart_str *buf, const char *format, va_list ap);
365extern ZEND_API char *(*zend_getenv)(const char *name, size_t name_len);
367/* Generate 'size' random bytes into 'bytes' with the OS CSPRNG. */
369 void *bytes, size_t size, char *errstr, size_t errstr_size);
370/* Generate 'size' random bytes into 'bytes' with a general purpose PRNG (not
371 * crypto safe). 'state' must be zeroed before the first call and can be reused.
372 */
374 zend_random_bytes_insecure_state *state, void *bytes, size_t size);
375
376/* These two callbacks are especially for opcache */
378extern ZEND_API void (*zend_post_shutdown_cb)(void);
379
380extern ZEND_API void (*zend_accel_schedule_restart_hook)(int reason);
381
382ZEND_API ZEND_COLD void zend_error(int type, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
384ZEND_API ZEND_COLD ZEND_NORETURN void zend_error_noreturn_unchecked(int type, const char *format, ...);
385/* For custom format specifiers like H */
386ZEND_API ZEND_COLD void zend_error_unchecked(int type, const char *format, ...);
387/* If filename is NULL the default filename is used. */
388ZEND_API ZEND_COLD void zend_error_at(int type, zend_string *filename, uint32_t lineno, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 4, 5);
389ZEND_API ZEND_COLD ZEND_NORETURN void zend_error_at_noreturn(int type, zend_string *filename, uint32_t lineno, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 4, 5);
391ZEND_API ZEND_COLD void zend_error_zstr_at(int type, zend_string *filename, uint32_t lineno, zend_string *message);
392
393ZEND_API ZEND_COLD void zend_throw_error(zend_class_entry *exception_ce, const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 2, 3);
394ZEND_API ZEND_COLD void zend_type_error(const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 1, 2);
397/* type should be one of the BP_VAR_* constants, only special messages happen for isset/empty and unset */
399
400ZEND_COLD void zenderror(const char *error);
401
402/* For internal C errors */
403ZEND_API ZEND_COLD ZEND_NORETURN void zend_strerror_noreturn(int type, int errn, const char *message);
404
405/* The following #define is used for code duality in PHP for Engine 1 & 2 */
406#define ZEND_STANDARD_CLASS_DEF_PTR zend_standard_class_def
409
410/* If DTrace is available and enabled */
411extern ZEND_API bool zend_dtrace_enabled;
413
414#define ZEND_UV(name) (zend_uv.name)
415
417ZEND_API void zend_message_dispatcher(zend_long message, const void *data);
418
421
422/* Messages for applications of Zend */
423#define ZMSG_FAILED_INCLUDE_FOPEN 1L
424#define ZMSG_FAILED_REQUIRE_FOPEN 2L
425#define ZMSG_FAILED_HIGHLIGHT_FOPEN 3L
426#define ZMSG_MEMORY_LEAK_DETECTED 4L
427#define ZMSG_MEMORY_LEAK_REPEATED 5L
428#define ZMSG_LOG_SCRIPT_NAME 6L
429#define ZMSG_MEMORY_LEAKS_GRAND_TOTAL 7L
430
435
440
449
450#define DEBUG_BACKTRACE_PROVIDE_OBJECT (1<<0)
451#define DEBUG_BACKTRACE_IGNORE_ARGS (1<<1)
452
453#include "zend_object_handlers.h"
454#include "zend_operators.h"
455
456#endif /* ZEND_H */
printf(string $format, mixed ... $values)
error($message)
Definition ext_skel.php:22
zend_ffi_type * type
Definition ffi.c:3812
DL_HANDLE handle
Definition ffi.c:3028
new_type size
Definition ffi.c:4365
zend_ffi_ctype_name_buf buf
Definition ffi.c:4685
zend_long offset
#define zenderror
Definition php.h:336
zend_constant * data
zval * current
Definition session.c:1024
zend_class_entry * ce
Definition zend.h:124
zend_string * name
Definition zend.h:123
Definition zend.h:147
HashTable constants_table
Definition zend.h:165
zend_function * __debugInfo
Definition zend.h:182
zend_function * __set
Definition zend.h:176
zend_function * __tostring
Definition zend.h:181
zend_class_iterator_funcs * iterator_funcs_ptr
Definition zend.h:189
struct _zend_module_entry * module
Definition zend.h:234
zval * default_static_members_table
Definition zend.h:161
HashTable * backed_enum_table
Definition zend.h:222
struct _zend_class_entry::@126215362204241324314155352336150042254204116267::@166057154351252324007362117353350250255142166322 user
uint32_t num_hooked_props
Definition zend.h:207
HashTable properties_info
Definition zend.h:164
zend_function * __isset
Definition zend.h:178
zend_trait_precedence ** trait_precedences
Definition zend.h:218
zend_string * filename
Definition zend.h:228
zend_class_name * trait_names
Definition zend.h:216
zend_class_name * interface_names
Definition zend.h:213
zend_function * __unserialize
Definition zend.h:184
zend_string * name
Definition zend.h:149
union _zend_class_entry::@126215362204241324314155352336150042254204116267 info
zend_function * __call
Definition zend.h:179
uint32_t num_traits
Definition zend.h:206
struct _zend_class_entry::@126215362204241324314155352336150042254204116267::@031207115026352130035014265255253014334154061307 internal
const struct _zend_function_entry * builtin_functions
Definition zend.h:233
uint32_t num_interfaces
Definition zend.h:205
zend_function * __unset
Definition zend.h:177
zend_class_arrayaccess_funcs * arrayaccess_funcs_ptr
Definition zend.h:191
zend_string * parent_name
Definition zend.h:153
uint32_t line_end
Definition zend.h:230
uint32_t ce_flags
Definition zend.h:156
int default_properties_count
Definition zend.h:158
zend_function * __serialize
Definition zend.h:183
char type
Definition zend.h:148
uint32_t line_start
Definition zend.h:229
zend_trait_alias ** trait_aliases
Definition zend.h:217
zend_class_entry ** interfaces
Definition zend.h:212
zend_function * __get
Definition zend.h:175
int default_static_members_count
Definition zend.h:159
int(* interface_gets_implemented)(zend_class_entry *iface, zend_class_entry *class_type)
Definition zend.h:196
HashTable * attributes
Definition zend.h:219
int refcount
Definition zend.h:155
zend_function * constructor
Definition zend.h:172
uint32_t enum_backing_type
Definition zend.h:221
uint32_t num_hooked_prop_variance_checks
Definition zend.h:208
zend_inheritance_cache_entry * inheritance_cache
Definition zend.h:168
struct _zend_property_info ** properties_info_table
Definition zend.h:170
zend_class_entry * parent
Definition zend.h:152
int(* serialize)(zval *object, unsigned char **buffer, size_t *buf_len, zend_serialize_data *data)
Definition zend.h:202
zend_string * doc_comment
Definition zend.h:224
ZEND_MAP_PTR_DEF(zval *, static_members_table)
zval * default_properties_table
Definition zend.h:160
HashTable function_table
Definition zend.h:163
ZEND_MAP_PTR_DEF(zend_class_mutable_data *, mutable_data)
int(* unserialize)(zval *object, zend_class_entry *ce, const unsigned char *buf, size_t buf_len, zend_unserialize_data *data)
Definition zend.h:203
const zend_object_handlers * default_object_handlers
Definition zend.h:186
zend_function * __callstatic
Definition zend.h:180
zend_function * clone
Definition zend.h:174
zend_function * destructor
Definition zend.h:173
zval * default_properties_table
Definition zend.h:116
HashTable * backed_enum_table
Definition zend.h:119
HashTable * constants_table
Definition zend.h:117
zend_string * lc_name
Definition zend.h:87
zend_string * name
Definition zend.h:86
uint32_t lineno
Definition zend.h:131
zend_string * message
Definition zend.h:133
zend_string * filename
Definition zend.h:132
Definition zend_API.h:35
Definition zend.h:136
zend_class_entry * parent
Definition zend.h:139
uint32_t num_warnings
Definition zend.h:142
zend_error_info ** warnings
Definition zend.h:143
zend_class_entry * traits_and_interfaces[1]
Definition zend.h:144
zend_inheritance_cache_entry * next
Definition zend.h:137
zend_class_dependency * dependencies
Definition zend.h:140
uint32_t dependencies_count
Definition zend.h:141
zend_class_entry * ce
Definition zend.h:138
zend_trait_method_reference trait_method
Definition zend.h:102
uint32_t modifiers
Definition zend.h:112
zend_string * alias
Definition zend.h:107
zend_string * method_name
Definition zend.h:91
zend_string * class_name
Definition zend.h:92
zend_trait_method_reference trait_method
Definition zend.h:96
zend_string * exclude_class_names[1]
Definition zend.h:98
uint32_t num_excludes
Definition zend.h:97
void(* random_bytes_insecure_function)(zend_random_bytes_insecure_state *state, void *bytes, size_t size)
Definition zend.h:259
void(* printf_to_smart_str_function)(smart_str *buf, const char *format, va_list ap)
Definition zend.h:255
size_t(* printf_function)(const char *format,...) ZEND_ATTRIBUTE_PTR_FORMAT(printf
Definition zend.h:246
size_t size_t(* write_function)(const char *str, size_t str_length)
Definition zend.h:247
void(* printf_to_smart_string_function)(smart_string *buf, const char *format, va_list ap)
Definition zend.h:254
void(* message_handler)(zend_long message, const void *data)
Definition zend.h:249
void(* on_timeout)(int seconds)
Definition zend.h:252
zend_result(* stream_open_function)(zend_file_handle *handle)
Definition zend.h:253
void(* ticks_function)(int ticks)
Definition zend.h:251
void(* error_function)(int type, zend_string *error_filename, const uint32_t error_lineno, zend_string *message)
Definition zend.h:245
zend_result(* random_bytes_function)(void *bytes, size_t size, char *errstr, size_t errstr_size)
Definition zend.h:258
Definition file.h:177
zend_error_handling_t handling
Definition zend.h:437
zend_class_entry * exception
Definition zend.h:438
zend_max_align_t align
Definition zend.h:240
ZEND_API zval * zend_get_configuration_directive(zend_string *name)
Definition zend.c:1401
ZEND_API zend_string * zend_vstrpprintf(size_t max_len, const char *format, va_list ap)
Definition zend.c:335
ZEND_API zend_utility_values zend_uv
Definition zend.c:73
ZEND_API ZEND_COLD void zend_error_unchecked(int type, const char *format,...)
Definition zend.c:1670
ZEND_API bool zend_make_printable_zval(zval *expr, zval *expr_copy)
Definition zend.c:453
ZEND_API size_t zend_spprintf_unchecked(char **message, size_t max_len, const char *format,...)
Definition zend.c:323
ZEND_API zend_string * zend_strpprintf(size_t max_len, const char *format,...)
Definition zend.c:353
ZEND_API ZEND_COLD ZEND_NORETURN void _zend_bailout(const char *filename, uint32_t lineno)
Definition zend.c:1252
ZEND_API void(* zend_error_cb)(int type, zend_string *error_filename, const uint32_t error_lineno, zend_string *message)
Definition zend.c:90
ZEND_ATTRIBUTE_NONNULL ZEND_API void(* zend_random_bytes_insecure)(zend_random_bytes_insecure_state *state, void *bytes, size_t size)
Definition zend.c:99
ZEND_API ZEND_COLD void zend_error_zstr(int type, zend_string *message)
Definition zend.c:1731
ZEND_API ZEND_COLD void zend_error_at(int type, zend_string *filename, uint32_t lineno, const char *format,...)
Definition zend.c:1642
ZEND_API FILE *(* zend_fopen)(zend_string *filename, zend_string **opened_path)
Definition zend.c:86
ZEND_API ZEND_COLD void zend_error_zstr_at(int orig_type, zend_string *error_filename, uint32_t error_lineno, zend_string *message)
Definition zend.c:1428
ZEND_API ZEND_COLD ZEND_NORETURN void zend_error_noreturn(int type, const char *format,...)
Definition zend.c:1703
zend_result zend_post_startup(void)
Definition zend.c:1090
ZEND_API ZEND_COLD void zend_argument_count_error(const char *format,...)
Definition zend.c:1836
void free_estring(char **str_p)
Definition zend.c:2002
ZEND_API zend_string * zend_strpprintf_unchecked(size_t max_len, const char *format,...)
Definition zend.c:365
void zend_register_standard_ini_entries(void)
Definition zend.c:1080
void zend_shutdown(void)
Definition zend.c:1158
ZEND_API zend_string * zend_print_zval_r_to_str(zval *expr, int indent)
Definition zend.c:616
ZEND_API zend_result(* zend_stream_open_function)(zend_file_handle *handle)
Definition zend.c:87
ZEND_API void zend_print_zval_r(zval *expr, int indent)
Definition zend.c:625
void zend_print_flat_zval_r_to_buf(smart_str *buf, zval *expr)
Definition zend.c:479
void zend_set_utility_values(zend_utility_values *utility_values)
Definition zend.c:1232
void(* zend_printf_to_smart_str)(smart_str *buf, const char *format, va_list ap)
Definition zend.c:92
ZEND_API const char * get_zend_version(void)
Definition zend.c:1306
ZEND_API zend_result(* zend_post_startup_cb)(void)
Definition zend.c:95
ZEND_API ZEND_COLD void zend_throw_error(zend_class_entry *exception_ce, const char *format,...)
Definition zend.c:1772
ZEND_API zend_class_entry * zend_standard_class_def
Definition zend.c:83
ZEND_API void zend_activate(void)
Definition zend.c:1312
ZEND_API ZEND_COLD ZEND_NORETURN void zend_error_at_noreturn(int type, zend_string *filename, uint32_t lineno, const char *format,...)
Definition zend.c:1674
ZEND_API ZEND_COLD void zend_type_error(const char *format,...)
Definition zend.c:1824
ZEND_API void(* zend_post_shutdown_cb)(void)
Definition zend.c:96
void zend_call_destructors(void)
Definition zend.c:1329
ZEND_API ZEND_COLD void zend_value_error(const char *format,...)
Definition zend.c:1849
ZEND_API bool zend_dtrace_enabled
Definition zend.c:74
ZEND_API void zend_deactivate(void)
Definition zend.c:1337
ZEND_API size_t zend_get_page_size(void)
Definition zend.c:1269
ZEND_API ZEND_COLD ZEND_NORETURN void zend_error_noreturn_unchecked(int type, const char *format,...)
Definition zend.c:1708
ZEND_API ZEND_COLD void zend_error(int type, const char *format,...)
Definition zend.c:1666
ZEND_ATTRIBUTE_NONNULL ZEND_API zend_result(* zend_random_bytes)(void *bytes, size_t size, char *errstr, size_t errstr_size)
Definition zend.c:98
ZEND_API zend_string *(* zend_resolve_path)(zend_string *filename)
Definition zend.c:94
ZEND_API ZEND_COLD void zend_illegal_container_offset(const zend_string *container, const zval *offset, int type)
Definition zend.c:1802
ZEND_API void(* zend_accel_schedule_restart_hook)(int reason)
Definition zend.c:97
ZEND_API size_t zend_spprintf(char **message, size_t max_len, const char *format,...)
Definition zend.c:311
ZEND_API size_t(* zend_printf)(const char *format,...)
Definition zend.c:84
void(* zend_on_timeout)(int seconds)
Definition zend.c:102
ZEND_API void zend_print_flat_zval_r(zval *expr)
Definition zend.c:534
void(* zend_printf_to_smart_string)(smart_string *buf, const char *format, va_list ap)
Definition zend.c:91
void zend_startup(zend_utility_functions *utility_functions)
Definition zend.c:916
ZEND_API ZEND_COLD ZEND_NORETURN void zend_strerror_noreturn(int type, int errn, const char *message)
Definition zend.c:1713
ZEND_API void zend_free_recorded_errors(void)
Definition zend.c:1755
ZEND_API void zend_begin_record_errors(void)
Definition zend.c:1738
ZEND_API size_t zend_print_zval(zval *expr, int indent)
Definition zend.c:464
ZEND_API size_t zend_vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap)
Definition zend.c:283
ZEND_API void(* zend_ticks_function)(int ticks)
Definition zend.c:88
ZEND_API void(* zend_interrupt_function)(zend_execute_data *execute_data)
Definition zend.c:89
ZEND_API char *(* zend_getenv)(const char *name, size_t name_len)
Definition zend.c:93
ZEND_API void zend_emit_recorded_errors(void)
Definition zend.c:1746
ZEND_API zend_write_func_t zend_write
Definition zend.c:85
ZEND_API void zend_message_dispatcher(zend_long message, const void *data)
Definition zend.c:1393
struct _zend_unserialize_data zend_unserialize_data
Definition zend.h:83
struct _zend_class_name zend_class_name
ZEND_API void zend_activate_modules(void)
Definition zend_API.c:3371
struct _zend_class_mutable_data zend_class_mutable_data
struct _zend_inheritance_cache_entry zend_inheritance_cache_entry
Definition zend.h:127
void zend_unload_modules(void)
Definition zend_API.c:3415
struct _zend_class_dependency zend_class_dependency
struct _zend_trait_precedence zend_trait_precedence
struct _zend_utility_functions zend_utility_functions
struct _zend_error_info zend_error_info
#define ZEND_TSRMLS_CACHE_EXTERN()
Definition zend.h:67
ZEND_API void zend_deactivate_modules(void)
Definition zend_API.c:3387
zend_error_handling_t
Definition zend.h:431
@ EH_THROW
Definition zend.h:433
@ EH_NORMAL
Definition zend.h:432
struct _zend_trait_alias zend_trait_alias
ZEND_API ZEND_COLD void zend_output_debug_string(bool trigger_break, const char *format,...) ZEND_ATTRIBUTE_FORMAT(printf
size_t(* zend_write_func_t)(const char *str, size_t str_length)
Definition zend.h:266
struct _zend_utility_values zend_utility_values
ZEND_API void zend_replace_error_handling(zend_error_handling_t error_handling, zend_class_entry *exception_class, zend_error_handling *current)
Definition zend_API.c:5242
struct _zend_serialize_data zend_serialize_data
Definition zend.h:82
ZEND_API size_t zend_print_zval(zval *expr, int indent)
Definition zend.c:464
ZEND_API void zend_restore_error_handling(zend_error_handling *saved)
Definition zend_API.c:5253
ZEND_API void zend_post_deactivate_modules(void)
Definition zend_API.c:3427
ZEND_API void zend_save_error_handling(zend_error_handling *current)
Definition zend_API.c:5235
struct _zend_trait_method_reference zend_trait_method_reference
struct _zval_struct zval
#define ZEND_API
ZEND_API void(ZEND_FASTCALL *zend_touch_vm_stack_data)(void *vm_stack_data)
union _zend_function zend_function
struct _zend_file_handle zend_file_handle
struct _zend_class_arrayaccess_funcs zend_class_arrayaccess_funcs
struct _zend_class_iterator_funcs zend_class_iterator_funcs
struct _zend_object_iterator zend_object_iterator
int32_t zend_long
Definition zend_long.h:42
struct _zend_string zend_string
#define END_EXTERN_C()
#define zend_always_inline
#define ZEND_ATTRIBUTE_NONNULL
#define ZEND_ATTRIBUTE_FORMAT(type, idx, first)
#define ZEND_ATTRIBUTE_PTR_FORMAT(type, idx, first)
#define ZEND_COLD
#define ZEND_NORETURN
#define BEGIN_EXTERN_C()
struct _zend_class_entry zend_class_entry
struct _zend_object zend_object
struct _zend_array HashTable
Definition zend_types.h:386
ZEND_RESULT_CODE zend_result
Definition zend_types.h:64
struct _zend_object_handlers zend_object_handlers
Definition zend_types.h:88
struct _zend_execute_data zend_execute_data
Definition zend_types.h:91
container
zend_string * name
execute_data
object