2020-06-19 17:40:31 +08:00
|
|
|
/* This is a generated file, edit the .stub.php file instead.
|
2024-08-17 05:35:16 +08:00
|
|
|
* Stub hash: 3dbc84896823c9aaa9ac8aeef8841266920c3e50 */
|
2024-08-14 19:44:12 +08:00
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_exit, 0, 0, IS_NEVER, 0)
|
2024-08-17 05:35:16 +08:00
|
|
|
ZEND_ARG_TYPE_MASK(0, status, MAY_BE_STRING|MAY_BE_LONG, "0")
|
2024-08-14 19:44:12 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
#define arginfo_die arginfo_exit
|
2019-06-18 17:33:07 +08:00
|
|
|
|
|
|
|
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)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, position, IS_LONG, 0)
|
2019-06-18 17:33:07 +08:00
|
|
|
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)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_strcmp, 0, 2, IS_LONG, 0)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, string1, IS_STRING, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, string2, IS_STRING, 0)
|
2019-06-18 17:33:07 +08:00
|
|
|
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)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, string1, IS_STRING, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, string2, IS_STRING, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, length, IS_LONG, 0)
|
2019-06-18 17:33:07 +08:00
|
|
|
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)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, error_level, IS_LONG, 1, "null")
|
2019-06-18 17:33:07 +08:00
|
|
|
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)
|
2021-07-15 04:02:59 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
|
2020-07-29 05:00:44 +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)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_TYPE_MASK(0, object_or_class, MAY_BE_OBJECT|MAY_BE_STRING, NULL)
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_is_subclass_of, 0, 2, _IS_BOOL, 0)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, object_or_class, IS_MIXED, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, class, 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)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, object_or_class, IS_MIXED, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, class, IS_STRING, 0)
|
2020-04-06 17:02:13 +08:00
|
|
|
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
|
|
|
|
2020-09-22 19:05:05 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_class_vars, 0, 1, IS_ARRAY, 0)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, class, IS_STRING, 0)
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_object_vars, 0, 1, IS_ARRAY, 0)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, object, IS_OBJECT, 0)
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
#define arginfo_get_mangled_object_vars arginfo_get_object_vars
|
|
|
|
|
2020-07-01 22:49:57 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_get_class_methods, 0, 1, IS_ARRAY, 0)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_TYPE_MASK(0, object_or_class, MAY_BE_OBJECT|MAY_BE_STRING, NULL)
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_method_exists, 0, 2, _IS_BOOL, 0)
|
2020-11-18 03:13:42 +08:00
|
|
|
ZEND_ARG_INFO(0, object_or_class)
|
2019-06-18 17:33:07 +08:00
|
|
|
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)
|
2020-11-18 03:13:42 +08:00
|
|
|
ZEND_ARG_INFO(0, object_or_class)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, property, IS_STRING, 0)
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_exists, 0, 1, _IS_BOOL, 0)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, class, 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-07-12 18:40:37 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_interface_exists, 0, 1, _IS_BOOL, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, interface, IS_STRING, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, autoload, _IS_BOOL, 0, "true")
|
|
|
|
ZEND_END_ARG_INFO()
|
2019-06-18 17:33:07 +08:00
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_trait_exists, 0, 1, _IS_BOOL, 0)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, trait, 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-06-11 05:10:18 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_enum_exists, 0, 1, _IS_BOOL, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, enum, IS_STRING, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, autoload, _IS_BOOL, 0, "true")
|
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_function_exists, 0, 1, _IS_BOOL, 0)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, function, IS_STRING, 0)
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_alias, 0, 2, _IS_BOOL, 0)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, class, IS_STRING, 0)
|
|
|
|
ZEND_ARG_TYPE_INFO(0, alias, 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
|
|
|
|
2024-01-18 00:15:55 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_trigger_error, 0, 1, IS_TRUE, 0)
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0)
|
2020-09-29 04:19:20 +08:00
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, error_level, 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)
|
2020-09-29 04:19:20 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 1)
|
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, error_levels, IS_LONG, 0, "E_ALL")
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
2022-06-19 04:06:50 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_restore_error_handler, 0, 0, IS_TRUE, 0)
|
2019-06-18 17:33:07 +08:00
|
|
|
ZEND_END_ARG_INFO()
|
|
|
|
|
|
|
|
ZEND_BEGIN_ARG_INFO_EX(arginfo_set_exception_handler, 0, 0, 1)
|
2020-09-29 04:19:20 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, callback, IS_CALLABLE, 1)
|
2019-06-18 17:33:07 +08:00
|
|
|
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)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_INFO(0, resource)
|
2019-06-18 17:33:07 +08:00
|
|
|
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)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_INFO(0, resource)
|
2020-04-21 18:31:17 +08:00
|
|
|
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)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, type, IS_STRING, 1, "null")
|
2019-06-18 17:33:07 +08:00
|
|
|
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)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, extension, IS_STRING, 0)
|
2019-06-18 17:33:07 +08:00
|
|
|
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)
|
2020-07-12 18:40:37 +08:00
|
|
|
ZEND_ARG_TYPE_INFO(0, extension, IS_STRING, 0)
|
2019-06-18 17:33:07 +08:00
|
|
|
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
|
|
|
|
|
2022-06-19 04:06:50 +08:00
|
|
|
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_gc_enabled, 0, 0, _IS_BOOL, 0)
|
|
|
|
ZEND_END_ARG_INFO()
|
2019-06-18 17:33:07 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
2024-02-18 18:39:00 +08:00
|
|
|
|
2024-02-07 00:02:00 +08:00
|
|
|
ZEND_FRAMELESS_FUNCTION(property_exists, 2);
|
|
|
|
static const zend_frameless_function_info frameless_function_infos_property_exists[] = {
|
|
|
|
{ ZEND_FRAMELESS_FUNCTION_NAME(property_exists, 2), 2 },
|
|
|
|
{ 0 },
|
|
|
|
};
|
|
|
|
|
|
|
|
ZEND_FRAMELESS_FUNCTION(class_exists, 1);
|
|
|
|
ZEND_FRAMELESS_FUNCTION(class_exists, 2);
|
|
|
|
static const zend_frameless_function_info frameless_function_infos_class_exists[] = {
|
|
|
|
{ ZEND_FRAMELESS_FUNCTION_NAME(class_exists, 1), 1 },
|
|
|
|
{ ZEND_FRAMELESS_FUNCTION_NAME(class_exists, 2), 2 },
|
|
|
|
{ 0 },
|
|
|
|
};
|
|
|
|
|
2024-08-14 19:44:12 +08:00
|
|
|
ZEND_FUNCTION(exit);
|
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);
|
2020-06-11 05:10:18 +08:00
|
|
|
ZEND_FUNCTION(enum_exists);
|
2020-04-21 18:23:21 +08:00
|
|
|
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[] = {
|
2024-08-14 19:44:12 +08:00
|
|
|
ZEND_FE(exit, arginfo_exit)
|
|
|
|
ZEND_RAW_FENTRY("die", zif_exit, arginfo_die, 0, NULL, NULL)
|
2020-04-21 18:23:21 +08:00
|
|
|
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)
|
2024-02-25 15:41:31 +08:00
|
|
|
ZEND_RAW_FENTRY("strcmp", zif_strcmp, arginfo_strcmp, ZEND_ACC_COMPILE_TIME_EVAL, NULL, NULL)
|
|
|
|
ZEND_RAW_FENTRY("strncmp", zif_strncmp, arginfo_strncmp, ZEND_ACC_COMPILE_TIME_EVAL, NULL, NULL)
|
|
|
|
ZEND_RAW_FENTRY("strcasecmp", zif_strcasecmp, arginfo_strcasecmp, ZEND_ACC_COMPILE_TIME_EVAL, NULL, NULL)
|
|
|
|
ZEND_RAW_FENTRY("strncasecmp", zif_strncasecmp, arginfo_strncasecmp, ZEND_ACC_COMPILE_TIME_EVAL, NULL, NULL)
|
2020-04-21 18:23:21 +08:00
|
|
|
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)
|
2024-02-25 15:41:31 +08:00
|
|
|
ZEND_RAW_FENTRY("property_exists", zif_property_exists, arginfo_property_exists, 0, frameless_function_infos_property_exists, NULL)
|
|
|
|
ZEND_RAW_FENTRY("class_exists", zif_class_exists, arginfo_class_exists, 0, frameless_function_infos_class_exists, NULL)
|
2020-04-21 18:23:21 +08:00
|
|
|
ZEND_FE(interface_exists, arginfo_interface_exists)
|
|
|
|
ZEND_FE(trait_exists, arginfo_trait_exists)
|
2020-06-11 05:10:18 +08:00
|
|
|
ZEND_FE(enum_exists, arginfo_enum_exists)
|
2020-04-21 18:23:21 +08:00
|
|
|
ZEND_FE(function_exists, arginfo_function_exists)
|
|
|
|
ZEND_FE(class_alias, arginfo_class_alias)
|
|
|
|
ZEND_FE(get_included_files, arginfo_get_included_files)
|
2024-02-25 15:41:31 +08:00
|
|
|
ZEND_RAW_FENTRY("get_required_files", zif_get_included_files, arginfo_get_required_files, 0, NULL, NULL)
|
2020-04-21 18:23:21 +08:00
|
|
|
ZEND_FE(trigger_error, arginfo_trigger_error)
|
2024-02-25 15:41:31 +08:00
|
|
|
ZEND_RAW_FENTRY("user_error", zif_trigger_error, arginfo_user_error, 0, NULL, NULL)
|
2020-04-21 18:23:21 +08:00
|
|
|
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
|
|
|
|
};
|
2021-02-17 20:42:42 +08:00
|
|
|
|
|
|
|
static zend_class_entry *register_class_stdClass(void)
|
|
|
|
{
|
|
|
|
zend_class_entry ce, *class_entry;
|
|
|
|
|
2024-09-04 05:19:53 +08:00
|
|
|
INIT_CLASS_ENTRY(ce, "stdClass", NULL);
|
2024-08-24 18:36:54 +08:00
|
|
|
class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_ALLOW_DYNAMIC_PROPERTIES);
|
2022-07-06 00:22:33 +08:00
|
|
|
|
2022-12-27 05:47:36 +08:00
|
|
|
zend_string *attribute_name_AllowDynamicProperties_class_stdClass_0 = zend_string_init_interned("AllowDynamicProperties", sizeof("AllowDynamicProperties") - 1, 1);
|
|
|
|
zend_add_class_attribute(class_entry, attribute_name_AllowDynamicProperties_class_stdClass_0, 0);
|
|
|
|
zend_string_release(attribute_name_AllowDynamicProperties_class_stdClass_0);
|
2021-02-17 20:42:42 +08:00
|
|
|
|
|
|
|
return class_entry;
|
|
|
|
}
|