2019-06-18 17:33:07 +08:00
|
|
|
/* This is a generated file, edit the .stub.php file instead. */
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_version, 0, 0, IS_STRING, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_func_num_args, 0, 0, IS_LONG, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
2020-05-25 23:30:49 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_func_get_arg, 0, 1, IS_MIXED, 0)
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, arg_num, IS_LONG, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
2020-03-30 06:40:18 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_func_get_args, 0, 0, IS_ARRAY, 0)
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_strlen, 0, 1, IS_LONG, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, str, IS_STRING, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_strcmp, 0, 2, IS_LONG, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, str1, IS_STRING, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, str2, IS_STRING, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
2020-03-30 06:40:18 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_strncmp, 0, 3, IS_LONG, 0)
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, str1, IS_STRING, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, str2, IS_STRING, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, len, IS_LONG, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
2020-03-30 06:40:18 +08:00
|
|
|
#define arginfo_strcasecmp arginfo_strcmp
|
|
|
|
|
|
|
|
#define arginfo_strncasecmp arginfo_strncmp
|
|
|
|
|
2020-03-30 02:24:16 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_error_reporting, 0, 0, IS_LONG, 0)
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_ARG_INFO(0, new_error_level)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_define, 0, 2, _IS_BOOL, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, constant_name, IS_STRING, 0)
|
|
|
|
ZEND_ARG_INFO(0, value)
|
2020-04-06 17:02:13 +08:00
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, case_insensitive, _IS_BOOL, 0, "false")
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_defined, 0, 1, _IS_BOOL, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, constant_name, IS_STRING, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
2020-03-30 06:40:18 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_class, 0, 0, IS_STRING, 0)
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
2020-03-30 06:40:18 +08:00
|
|
|
#define arginfo_get_called_class arginfo_zend_version
|
2019-06-18 17:33:07 +08:00
|
|
|
|
2019-11-09 06:29:12 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_get_parent_class, 0, 0, MAY_BE_STRING|MAY_BE_FALSE)
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_ARG_INFO(0, object)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_is_subclass_of, 0, 2, _IS_BOOL, 0)
|
|
|
|
ZEND_ARG_INFO(0, object)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, class_name, IS_STRING, 0)
|
2020-04-06 17:02:13 +08:00
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, allow_string, _IS_BOOL, 0, "true")
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
2020-04-06 17:02:13 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_is_a, 0, 2, _IS_BOOL, 0)
|
|
|
|
ZEND_ARG_INFO(0, object)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, class_name, IS_STRING, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, allow_string, _IS_BOOL, 0, "false")
|
|
|
|
ZEND_END_ARG_INFO()
|
2019-06-18 17:33:07 +08:00
|
|
|
|
2019-11-09 06:29:12 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_get_class_vars, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, class_name, IS_STRING, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_object_vars, 0, 1, IS_ARRAY, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, obj, IS_OBJECT, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
#define arginfo_get_mangled_object_vars arginfo_get_object_vars
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_class_methods, 0, 1, IS_ARRAY, 1)
|
|
|
|
ZEND_ARG_INFO(0, class)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_method_exists, 0, 2, _IS_BOOL, 0)
|
|
|
|
ZEND_ARG_INFO(0, object_or_class)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, method, IS_STRING, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
2020-03-30 06:40:18 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_property_exists, 0, 2, _IS_BOOL, 0)
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_ARG_INFO(0, object_or_class)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, property_name, IS_STRING, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_exists, 0, 1, _IS_BOOL, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, classname, IS_STRING, 0)
|
2020-04-06 17:02:13 +08:00
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, autoload, _IS_BOOL, 0, "true")
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
#define arginfo_interface_exists arginfo_class_exists
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_trait_exists, 0, 1, _IS_BOOL, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, traitname, IS_STRING, 0)
|
2020-04-06 17:02:13 +08:00
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, autoload, _IS_BOOL, 0, "true")
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_function_exists, 0, 1, _IS_BOOL, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, function_name, IS_STRING, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_alias, 0, 2, _IS_BOOL, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, user_class_name, IS_STRING, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, alias_name, IS_STRING, 0)
|
2020-04-06 17:02:13 +08:00
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, autoload, _IS_BOOL, 0, "true")
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
2020-03-30 06:40:18 +08:00
|
|
|
#define arginfo_get_included_files arginfo_func_get_args
|
2019-06-18 17:33:07 +08:00
|
|
|
|
2020-03-30 06:40:18 +08:00
|
|
|
#define arginfo_get_required_files arginfo_func_get_args
|
2019-06-18 17:33:07 +08:00
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_trigger_error, 0, 1, _IS_BOOL, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0)
|
2020-04-06 17:02:13 +08:00
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, error_type, IS_LONG, 0, "E_USER_NOTICE")
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
#define arginfo_user_error arginfo_trigger_error
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_INFO_EX(arginfo_set_error_handler, 0, 0, 1)
|
|
|
|
ZEND_ARG_INFO(0, error_handler)
|
2020-04-06 17:02:13 +08:00
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, error_types, IS_LONG, 0, "E_ALL")
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_restore_error_handler, 0, 0, _IS_BOOL, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_INFO_EX(arginfo_set_exception_handler, 0, 0, 1)
|
|
|
|
ZEND_ARG_INFO(0, exception_handler)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
#define arginfo_restore_exception_handler arginfo_restore_error_handler
|
|
|
|
|
2020-03-30 06:40:18 +08:00
|
|
|
#define arginfo_get_declared_classes arginfo_func_get_args
|
2019-06-18 17:33:07 +08:00
|
|
|
|
2020-03-30 06:40:18 +08:00
|
|
|
#define arginfo_get_declared_traits arginfo_func_get_args
|
2019-06-18 17:33:07 +08:00
|
|
|
|
2020-03-30 06:40:18 +08:00
|
|
|
#define arginfo_get_declared_interfaces arginfo_func_get_args
|
2019-06-18 17:33:07 +08:00
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_defined_functions, 0, 0, IS_ARRAY, 0)
|
Completely remove disabled functions from function table
Currently, disabling a function only replaces the internal
function handler with one that throws a warning, and a few
places in the engine special-case such functions, such as
function_exists. This leaves us with a Schrödinger's function,
which both does not exist (function_exists returns false) and
does exist (you cannot define a function with the same name).
In particular, this prevents the implementation of robust
polyfills, as reported in https://bugs.php.net/bug.php?id=79382:
if (!function_exists('getallheaders')) {
function getallheaders(...) { ... }
}
If getallheaders() is a disabled function, this code will break.
This patch changes disable_functions to remove the functions from
the function table completely. For all intents and purposes, it
will look like the function does not exist.
This also renders two bits of PHP functionality obsolete and thus
deprecated:
* ReflectionFunction::isDisabled(), as it will no longer be
possible to construct the ReflectionFunction of a disabled
function in the first place.
* get_defined_functions() with $exclude_disabled=false, as
get_defined_functions() now never returns disabled functions.
Fixed bug #79382.
Closes GH-5473.
2020-04-27 19:17:37 +08:00
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, exclude_disabled, _IS_BOOL, 0, "true")
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
2020-03-30 06:40:18 +08:00
|
|
|
#define arginfo_get_defined_vars arginfo_func_get_args
|
2019-06-18 17:33:07 +08:00
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_resource_type, 0, 1, IS_STRING, 0)
|
|
|
|
ZEND_ARG_INFO(0, res)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
2020-04-21 18:31:17 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_resource_id, 0, 1, IS_LONG, 0)
|
|
|
|
ZEND_ARG_INFO(0, res)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_resources, 0, 0, IS_ARRAY, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_loaded_extensions, 0, 0, IS_ARRAY, 0)
|
2020-04-06 17:02:13 +08:00
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, zend_extensions, _IS_BOOL, 0, "false")
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_defined_constants, 0, 0, IS_ARRAY, 0)
|
2020-04-06 17:02:13 +08:00
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, categorize, _IS_BOOL, 0, "false")
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_debug_backtrace, 0, 0, IS_ARRAY, 0)
|
2020-04-06 17:02:13 +08:00
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "DEBUG_BACKTRACE_PROVIDE_OBJECT")
|
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, limit, IS_LONG, 0, "0")
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_debug_print_backtrace, 0, 0, IS_VOID, 0)
|
2020-04-06 17:02:13 +08:00
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_LONG, 0, "0")
|
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, limit, IS_LONG, 0, "0")
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_extension_loaded, 0, 1, _IS_BOOL, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, extension_name, IS_STRING, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
2019-11-09 06:29:12 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_get_extension_funcs, 0, 1, MAY_BE_ARRAY|MAY_BE_FALSE)
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, extension_name, IS_STRING, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
#if ZEND_DEBUG && defined(ZTS)
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_zend_thread_id, 0, 0, IS_LONG, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define arginfo_gc_mem_caches arginfo_func_num_args
|
|
|
|
|
|
|
|
#define arginfo_gc_collect_cycles arginfo_func_num_args
|
|
|
|
|
|
|
|
#define arginfo_gc_enabled arginfo_restore_error_handler
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gc_enable, 0, 0, IS_VOID, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
#define arginfo_gc_disable arginfo_gc_enable
|
|
|
|
|
2020-03-30 06:40:18 +08:00
|
|
|
#define arginfo_gc_status arginfo_func_get_args
|
2020-04-21 18:23:21 +08:00
|
|
|
|
|
|
|
|
|
|
|
ZEND_FUNCTION(zend_version);
|
|
|
|
ZEND_FUNCTION(func_num_args);
|
|
|
|
ZEND_FUNCTION(func_get_arg);
|
|
|
|
ZEND_FUNCTION(func_get_args);
|
|
|
|
ZEND_FUNCTION(strlen);
|
|
|
|
ZEND_FUNCTION(strcmp);
|
|
|
|
ZEND_FUNCTION(strncmp);
|
|
|
|
ZEND_FUNCTION(strcasecmp);
|
|
|
|
ZEND_FUNCTION(strncasecmp);
|
|
|
|
ZEND_FUNCTION(error_reporting);
|
|
|
|
ZEND_FUNCTION(define);
|
|
|
|
ZEND_FUNCTION(defined);
|
|
|
|
ZEND_FUNCTION(get_class);
|
|
|
|
ZEND_FUNCTION(get_called_class);
|
|
|
|
ZEND_FUNCTION(get_parent_class);
|
|
|
|
ZEND_FUNCTION(is_subclass_of);
|
|
|
|
ZEND_FUNCTION(is_a);
|
|
|
|
ZEND_FUNCTION(get_class_vars);
|
|
|
|
ZEND_FUNCTION(get_object_vars);
|
|
|
|
ZEND_FUNCTION(get_mangled_object_vars);
|
|
|
|
ZEND_FUNCTION(get_class_methods);
|
|
|
|
ZEND_FUNCTION(method_exists);
|
|
|
|
ZEND_FUNCTION(property_exists);
|
|
|
|
ZEND_FUNCTION(class_exists);
|
|
|
|
ZEND_FUNCTION(interface_exists);
|
|
|
|
ZEND_FUNCTION(trait_exists);
|
|
|
|
ZEND_FUNCTION(function_exists);
|
|
|
|
ZEND_FUNCTION(class_alias);
|
|
|
|
ZEND_FUNCTION(get_included_files);
|
|
|
|
ZEND_FUNCTION(trigger_error);
|
|
|
|
ZEND_FUNCTION(set_error_handler);
|
|
|
|
ZEND_FUNCTION(restore_error_handler);
|
|
|
|
ZEND_FUNCTION(set_exception_handler);
|
|
|
|
ZEND_FUNCTION(restore_exception_handler);
|
|
|
|
ZEND_FUNCTION(get_declared_classes);
|
|
|
|
ZEND_FUNCTION(get_declared_traits);
|
|
|
|
ZEND_FUNCTION(get_declared_interfaces);
|
|
|
|
ZEND_FUNCTION(get_defined_functions);
|
|
|
|
ZEND_FUNCTION(get_defined_vars);
|
|
|
|
ZEND_FUNCTION(get_resource_type);
|
2020-04-21 18:31:17 +08:00
|
|
|
ZEND_FUNCTION(get_resource_id);
|
2020-04-21 18:23:21 +08:00
|
|
|
ZEND_FUNCTION(get_resources);
|
|
|
|
ZEND_FUNCTION(get_loaded_extensions);
|
|
|
|
ZEND_FUNCTION(get_defined_constants);
|
|
|
|
ZEND_FUNCTION(debug_backtrace);
|
|
|
|
ZEND_FUNCTION(debug_print_backtrace);
|
|
|
|
ZEND_FUNCTION(extension_loaded);
|
|
|
|
ZEND_FUNCTION(get_extension_funcs);
|
|
|
|
#if ZEND_DEBUG && defined(ZTS)
|
|
|
|
ZEND_FUNCTION(zend_thread_id);
|
|
|
|
#endif
|
|
|
|
ZEND_FUNCTION(gc_mem_caches);
|
|
|
|
ZEND_FUNCTION(gc_collect_cycles);
|
|
|
|
ZEND_FUNCTION(gc_enabled);
|
|
|
|
ZEND_FUNCTION(gc_enable);
|
|
|
|
ZEND_FUNCTION(gc_disable);
|
|
|
|
ZEND_FUNCTION(gc_status);
|
|
|
|
|
|
|
|
|
|
|
|
static const zend_function_entry ext_functions[] = {
|
|
|
|
ZEND_FE(zend_version, arginfo_zend_version)
|
|
|
|
ZEND_FE(func_num_args, arginfo_func_num_args)
|
|
|
|
ZEND_FE(func_get_arg, arginfo_func_get_arg)
|
|
|
|
ZEND_FE(func_get_args, arginfo_func_get_args)
|
|
|
|
ZEND_FE(strlen, arginfo_strlen)
|
|
|
|
ZEND_FE(strcmp, arginfo_strcmp)
|
|
|
|
ZEND_FE(strncmp, arginfo_strncmp)
|
|
|
|
ZEND_FE(strcasecmp, arginfo_strcasecmp)
|
|
|
|
ZEND_FE(strncasecmp, arginfo_strncasecmp)
|
|
|
|
ZEND_FE(error_reporting, arginfo_error_reporting)
|
|
|
|
ZEND_FE(define, arginfo_define)
|
|
|
|
ZEND_FE(defined, arginfo_defined)
|
|
|
|
ZEND_FE(get_class, arginfo_get_class)
|
|
|
|
ZEND_FE(get_called_class, arginfo_get_called_class)
|
|
|
|
ZEND_FE(get_parent_class, arginfo_get_parent_class)
|
|
|
|
ZEND_FE(is_subclass_of, arginfo_is_subclass_of)
|
|
|
|
ZEND_FE(is_a, arginfo_is_a)
|
|
|
|
ZEND_FE(get_class_vars, arginfo_get_class_vars)
|
|
|
|
ZEND_FE(get_object_vars, arginfo_get_object_vars)
|
|
|
|
ZEND_FE(get_mangled_object_vars, arginfo_get_mangled_object_vars)
|
|
|
|
ZEND_FE(get_class_methods, arginfo_get_class_methods)
|
|
|
|
ZEND_FE(method_exists, arginfo_method_exists)
|
|
|
|
ZEND_FE(property_exists, arginfo_property_exists)
|
|
|
|
ZEND_FE(class_exists, arginfo_class_exists)
|
|
|
|
ZEND_FE(interface_exists, arginfo_interface_exists)
|
|
|
|
ZEND_FE(trait_exists, arginfo_trait_exists)
|
|
|
|
ZEND_FE(function_exists, arginfo_function_exists)
|
|
|
|
ZEND_FE(class_alias, arginfo_class_alias)
|
|
|
|
ZEND_FE(get_included_files, arginfo_get_included_files)
|
|
|
|
ZEND_FALIAS(get_required_files, get_included_files, arginfo_get_required_files)
|
|
|
|
ZEND_FE(trigger_error, arginfo_trigger_error)
|
|
|
|
ZEND_FALIAS(user_error, trigger_error, arginfo_user_error)
|
|
|
|
ZEND_FE(set_error_handler, arginfo_set_error_handler)
|
|
|
|
ZEND_FE(restore_error_handler, arginfo_restore_error_handler)
|
|
|
|
ZEND_FE(set_exception_handler, arginfo_set_exception_handler)
|
|
|
|
ZEND_FE(restore_exception_handler, arginfo_restore_exception_handler)
|
|
|
|
ZEND_FE(get_declared_classes, arginfo_get_declared_classes)
|
|
|
|
ZEND_FE(get_declared_traits, arginfo_get_declared_traits)
|
|
|
|
ZEND_FE(get_declared_interfaces, arginfo_get_declared_interfaces)
|
|
|
|
ZEND_FE(get_defined_functions, arginfo_get_defined_functions)
|
|
|
|
ZEND_FE(get_defined_vars, arginfo_get_defined_vars)
|
|
|
|
ZEND_FE(get_resource_type, arginfo_get_resource_type)
|
2020-04-21 18:31:17 +08:00
|
|
|
ZEND_FE(get_resource_id, arginfo_get_resource_id)
|
2020-04-21 18:23:21 +08:00
|
|
|
ZEND_FE(get_resources, arginfo_get_resources)
|
|
|
|
ZEND_FE(get_loaded_extensions, arginfo_get_loaded_extensions)
|
|
|
|
ZEND_FE(get_defined_constants, arginfo_get_defined_constants)
|
|
|
|
ZEND_FE(debug_backtrace, arginfo_debug_backtrace)
|
|
|
|
ZEND_FE(debug_print_backtrace, arginfo_debug_print_backtrace)
|
|
|
|
ZEND_FE(extension_loaded, arginfo_extension_loaded)
|
|
|
|
ZEND_FE(get_extension_funcs, arginfo_get_extension_funcs)
|
|
|
|
#if ZEND_DEBUG && defined(ZTS)
|
|
|
|
ZEND_FE(zend_thread_id, arginfo_zend_thread_id)
|
|
|
|
#endif
|
|
|
|
ZEND_FE(gc_mem_caches, arginfo_gc_mem_caches)
|
|
|
|
ZEND_FE(gc_collect_cycles, arginfo_gc_collect_cycles)
|
|
|
|
ZEND_FE(gc_enabled, arginfo_gc_enabled)
|
|
|
|
ZEND_FE(gc_enable, arginfo_gc_enable)
|
|
|
|
ZEND_FE(gc_disable, arginfo_gc_disable)
|
|
|
|
ZEND_FE(gc_status, arginfo_gc_status)
|
|
|
|
ZEND_FE_END
|
|
|
|
};
|