php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
zend_execute_API.c File Reference
#include <stdio.h>
#include <signal.h>
#include "zend.h"
#include "zend_compile.h"
#include "zend_execute.h"
#include "zend_API.h"
#include "zend_stack.h"
#include "zend_constants.h"
#include "zend_extensions.h"
#include "zend_exceptions.h"
#include "zend_closures.h"
#include "zend_generators.h"
#include "zend_vm.h"
#include "zend_float.h"
#include "zend_fibers.h"
#include "zend_weakrefs.h"
#include "zend_inheritance.h"
#include "zend_observer.h"
#include "zend_call_stack.h"
#include "zend_frameless_function.h"

Go to the source code of this file.

Macros

#define SIGPROF   27
 

Functions

void init_executor (void)
 
void shutdown_destructors (void)
 
ZEND_API void zend_shutdown_executor_values (bool fast_shutdown)
 
void shutdown_executor (void)
 
ZEND_API const char * get_active_class_name (const char **space)
 
ZEND_API const char * get_active_function_name (void)
 
ZEND_API zend_functionzend_active_function_ex (zend_execute_data *execute_data)
 
ZEND_API zend_stringget_active_function_or_method_name (void)
 
ZEND_API zend_stringget_function_or_method_name (const zend_function *func)
 
ZEND_API const char * get_active_function_arg_name (uint32_t arg_num)
 
ZEND_API const char * get_function_arg_name (const zend_function *func, uint32_t arg_num)
 
ZEND_API const char * zend_get_executed_filename (void)
 
ZEND_API zend_stringzend_get_executed_filename_ex (void)
 
ZEND_API uint32_t zend_get_executed_lineno (void)
 
ZEND_API zend_class_entryzend_get_executed_scope (void)
 
ZEND_API bool zend_is_executing (void)
 
ZEND_API zend_result ZEND_FASTCALL zval_update_constant_with_ctx (zval *p, zend_class_entry *scope, zend_ast_evaluate_ctx *ctx)
 
ZEND_API zend_result ZEND_FASTCALL zval_update_constant_ex (zval *p, zend_class_entry *scope)
 
ZEND_API zend_result ZEND_FASTCALL zval_update_constant (zval *pp)
 
zend_result _call_user_function_impl (zval *object, zval *function_name, zval *retval_ptr, uint32_t param_count, zval params[], HashTable *named_params)
 
zend_result zend_call_function (zend_fcall_info *fci, zend_fcall_info_cache *fci_cache)
 
ZEND_API void zend_call_known_function (zend_function *fn, zend_object *object, zend_class_entry *called_scope, zval *retval_ptr, uint32_t param_count, zval *params, HashTable *named_params)
 
ZEND_API void zend_call_known_instance_method_with_2_params (zend_function *fn, zend_object *object, zval *retval_ptr, zval *param1, zval *param2)
 
ZEND_API zend_result zend_call_method_if_exists (zend_object *object, zend_string *method_name, zval *retval, uint32_t param_count, zval *params)
 
ZEND_API bool zend_is_valid_class_name (zend_string *name)
 
ZEND_API zend_class_entryzend_lookup_class_ex (zend_string *name, zend_string *key, uint32_t flags)
 
ZEND_API zend_class_entryzend_lookup_class (zend_string *name)
 
ZEND_API zend_class_entryzend_get_called_scope (zend_execute_data *ex)
 
ZEND_API zend_objectzend_get_this_object (zend_execute_data *ex)
 
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 (const char *str, zval *retval_ptr, const char *string_name)
 
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 zend_result zend_eval_string_ex (const char *str, zval *retval_ptr, const char *string_name, bool handle_exceptions)
 
ZEND_API ZEND_NORETURN void ZEND_FASTCALL zend_timeout (void)
 
void zend_set_timeout (zend_long seconds, bool reset_signals)
 
void zend_unset_timeout (void)
 
zend_class_entryzend_fetch_class (zend_string *class_name, uint32_t fetch_type)
 
zend_class_entryzend_fetch_class_with_scope (zend_string *class_name, uint32_t fetch_type, zend_class_entry *scope)
 
zend_class_entryzend_fetch_class_by_name (zend_string *class_name, zend_string *key, uint32_t fetch_type)
 
ZEND_API zend_result zend_delete_global_variable (zend_string *name)
 
ZEND_API zend_arrayzend_rebuild_symbol_table (void)
 
ZEND_API void zend_attach_symbol_table (zend_execute_data *execute_data)
 
ZEND_API void zend_detach_symbol_table (zend_execute_data *execute_data)
 
ZEND_API zend_result zend_set_local_var (zend_string *name, zval *value, bool force)
 
ZEND_API zend_result zend_set_local_var_str (const char *name, size_t len, zval *value, bool force)
 

Variables

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_class_entry *(* zend_autoload )(zend_string *name, zend_string *lc_name)
 
ZEND_API const zend_fcall_info empty_fcall_info = {0}
 
ZEND_API const zend_fcall_info_cache empty_fcall_info_cache = {0}
 

Macro Definition Documentation

◆ SIGPROF

#define SIGPROF   27

Definition at line 1541 of file zend_execute_API.c.

Function Documentation

◆ _call_user_function_impl()

zend_result _call_user_function_impl ( zval * object,
zval * function_name,
zval * retval_ptr,
uint32_t param_count,
zval params[],
HashTable * named_params )

Definition at line 775 of file zend_execute_API.c.

◆ get_active_class_name()

ZEND_API const char * get_active_class_name ( const char ** space)

Definition at line 524 of file zend_execute_API.c.

◆ get_active_function_arg_name()

ZEND_API const char * get_active_function_arg_name ( uint32_t arg_num)

Definition at line 620 of file zend_execute_API.c.

◆ get_active_function_name()

ZEND_API const char * get_active_function_name ( void )

Definition at line 557 of file zend_execute_API.c.

◆ get_active_function_or_method_name()

ZEND_API zend_string * get_active_function_or_method_name ( void )

Definition at line 602 of file zend_execute_API.c.

◆ get_function_arg_name()

ZEND_API const char * get_function_arg_name ( const zend_function * func,
uint32_t arg_num )

Definition at line 632 of file zend_execute_API.c.

◆ get_function_or_method_name()

ZEND_API zend_string * get_function_or_method_name ( const zend_function * func)

Definition at line 610 of file zend_execute_API.c.

◆ init_executor()

void init_executor ( void )

Definition at line 132 of file zend_execute_API.c.

◆ shutdown_destructors()

void shutdown_destructors ( void )

Definition at line 253 of file zend_execute_API.c.

◆ shutdown_executor()

void shutdown_executor ( void )

Definition at line 428 of file zend_execute_API.c.

◆ zend_active_function_ex()

ZEND_API zend_function * zend_active_function_ex ( zend_execute_data * execute_data)

Definition at line 587 of file zend_execute_API.c.

◆ zend_attach_symbol_table()

ZEND_API void zend_attach_symbol_table ( zend_execute_data * execute_data)

Definition at line 1845 of file zend_execute_API.c.

◆ zend_call_function()

zend_result zend_call_function ( zend_fcall_info * fci,
zend_fcall_info_cache * fci_cache )

Definition at line 796 of file zend_execute_API.c.

◆ zend_call_known_function()

ZEND_API void zend_call_known_function ( zend_function * fn,
zend_object * object,
zend_class_entry * called_scope,
zval * retval_ptr,
uint32_t param_count,
zval * params,
HashTable * named_params )

Definition at line 1072 of file zend_execute_API.c.

◆ zend_call_known_instance_method_with_2_params()

ZEND_API void zend_call_known_instance_method_with_2_params ( zend_function * fn,
zend_object * object,
zval * retval_ptr,
zval * param1,
zval * param2 )

Definition at line 1108 of file zend_execute_API.c.

◆ zend_call_method_if_exists()

ZEND_API zend_result zend_call_method_if_exists ( zend_object * object,
zend_string * method_name,
zval * retval,
uint32_t param_count,
zval * params )

Definition at line 1117 of file zend_execute_API.c.

◆ zend_delete_global_variable()

ZEND_API zend_result zend_delete_global_variable ( zend_string * name)

Definition at line 1792 of file zend_execute_API.c.

◆ zend_detach_symbol_table()

ZEND_API void zend_detach_symbol_table ( zend_execute_data * execute_data)

Definition at line 1880 of file zend_execute_API.c.

◆ zend_eval_string()

ZEND_API zend_result zend_eval_string ( const char * str,
zval * retval_ptr,
const char * string_name )

Definition at line 1387 of file zend_execute_API.c.

◆ zend_eval_string_ex()

ZEND_API zend_result zend_eval_string_ex ( const char * str,
zval * retval_ptr,
const char * string_name,
bool handle_exceptions )

Definition at line 1405 of file zend_execute_API.c.

◆ zend_eval_stringl()

ZEND_API zend_result zend_eval_stringl ( const char * str,
size_t str_len,
zval * retval_ptr,
const char * string_name )

Definition at line 1325 of file zend_execute_API.c.

◆ zend_eval_stringl_ex()

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 )

Definition at line 1393 of file zend_execute_API.c.

◆ zend_fetch_class()

zend_class_entry * zend_fetch_class ( zend_string * class_name,
uint32_t fetch_type )

Definition at line 1700 of file zend_execute_API.c.

◆ zend_fetch_class_by_name()

zend_class_entry * zend_fetch_class_by_name ( zend_string * class_name,
zend_string * key,
uint32_t fetch_type )

Definition at line 1781 of file zend_execute_API.c.

◆ zend_fetch_class_with_scope()

zend_class_entry * zend_fetch_class_with_scope ( zend_string * class_name,
uint32_t fetch_type,
zend_class_entry * scope )

Definition at line 1748 of file zend_execute_API.c.

◆ zend_get_called_scope()

ZEND_API zend_class_entry * zend_get_called_scope ( zend_execute_data * ex)

Definition at line 1291 of file zend_execute_API.c.

◆ zend_get_executed_filename()

ZEND_API const char * zend_get_executed_filename ( void )

Definition at line 646 of file zend_execute_API.c.

◆ zend_get_executed_filename_ex()

ZEND_API zend_string * zend_get_executed_filename_ex ( void )

Definition at line 653 of file zend_execute_API.c.

◆ zend_get_executed_lineno()

ZEND_API uint32_t zend_get_executed_lineno ( void )

Definition at line 673 of file zend_execute_API.c.

◆ zend_get_executed_scope()

ZEND_API zend_class_entry * zend_get_executed_scope ( void )

Definition at line 701 of file zend_execute_API.c.

◆ zend_get_this_object()

ZEND_API zend_object * zend_get_this_object ( zend_execute_data * ex)

Definition at line 1309 of file zend_execute_API.c.

◆ zend_is_executing()

ZEND_API bool zend_is_executing ( void )

Definition at line 716 of file zend_execute_API.c.

◆ zend_is_valid_class_name()

ZEND_API bool zend_is_valid_class_name ( zend_string * name)

Definition at line 1151 of file zend_execute_API.c.

◆ zend_lookup_class()

ZEND_API zend_class_entry * zend_lookup_class ( zend_string * name)

Definition at line 1285 of file zend_execute_API.c.

◆ zend_lookup_class_ex()

ZEND_API zend_class_entry * zend_lookup_class_ex ( zend_string * name,
zend_string * key,
uint32_t flags )

Definition at line 1161 of file zend_execute_API.c.

◆ zend_rebuild_symbol_table()

ZEND_API zend_array * zend_rebuild_symbol_table ( void )

Definition at line 1798 of file zend_execute_API.c.

◆ zend_set_local_var()

ZEND_API zend_result zend_set_local_var ( zend_string * name,
zval * value,
bool force )

Definition at line 1905 of file zend_execute_API.c.

◆ zend_set_local_var_str()

ZEND_API zend_result zend_set_local_var_str ( const char * name,
size_t len,
zval * value,
bool force )

Definition at line 1948 of file zend_execute_API.c.

◆ zend_set_timeout()

void zend_set_timeout ( zend_long seconds,
bool reset_signals )

Definition at line 1638 of file zend_execute_API.c.

◆ zend_shutdown_executor_values()

ZEND_API void zend_shutdown_executor_values ( bool fast_shutdown)

Definition at line 273 of file zend_execute_API.c.

◆ zend_timeout()

Definition at line 1413 of file zend_execute_API.c.

◆ zend_unset_timeout()

void zend_unset_timeout ( void )

Definition at line 1647 of file zend_execute_API.c.

◆ zval_update_constant()

ZEND_API zend_result ZEND_FASTCALL zval_update_constant ( zval * pp)

Definition at line 769 of file zend_execute_API.c.

◆ zval_update_constant_ex()

ZEND_API zend_result ZEND_FASTCALL zval_update_constant_ex ( zval * p,
zend_class_entry * scope )

Definition at line 763 of file zend_execute_API.c.

◆ zval_update_constant_with_ctx()

ZEND_API zend_result ZEND_FASTCALL zval_update_constant_with_ctx ( zval * p,
zend_class_entry * scope,
zend_ast_evaluate_ctx * ctx )

Definition at line 722 of file zend_execute_API.c.

Variable Documentation

◆ empty_fcall_info

ZEND_API const zend_fcall_info empty_fcall_info = {0}

Definition at line 57 of file zend_execute_API.c.

◆ empty_fcall_info_cache

ZEND_API const zend_fcall_info_cache empty_fcall_info_cache = {0}

Definition at line 58 of file zend_execute_API.c.

◆ zend_autoload

ZEND_API zend_class_entry *(* zend_autoload) (zend_string *name, zend_string *lc_name) ( zend_string * name,
zend_string * lc_name )

Definition at line 54 of file zend_execute_API.c.

◆ zend_execute_ex

ZEND_API void(* zend_execute_ex) (zend_execute_data *execute_data) ( zend_execute_data * execute_data)

Definition at line 52 of file zend_execute_API.c.

◆ zend_execute_internal

ZEND_API void(* zend_execute_internal) (zend_execute_data *execute_data, zval *return_value) ( zend_execute_data * execute_data,
zval * return_value )

Definition at line 53 of file zend_execute_API.c.