php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
json_arginfo.h
Go to the documentation of this file.
1/* This is a generated file, edit the .stub.php file instead.
2 * Stub hash: 0ceb50047401c4b9e878c09cc518eacc274f7fff */
3
9
10ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_json_decode, 0, 1, IS_MIXED, 0)
11 ZEND_ARG_TYPE_INFO(0, json, IS_STRING, 0)
12 ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, associative, _IS_BOOL, 1, "null")
16
17ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_json_validate, 0, 1, _IS_BOOL, 0)
18 ZEND_ARG_TYPE_INFO(0, json, IS_STRING, 0)
22
23ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_json_last_error, 0, 0, IS_LONG, 0)
25
26ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_json_last_error_msg, 0, 0, IS_STRING, 0)
28
29ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_JsonSerializable_jsonSerialize, 0, 0, IS_MIXED, 0)
31
37
38static const zend_function_entry ext_functions[] = {
39 ZEND_FE(json_encode, arginfo_json_encode)
40 ZEND_FE(json_decode, arginfo_json_decode)
41 ZEND_FE(json_validate, arginfo_json_validate)
42 ZEND_FE(json_last_error, arginfo_json_last_error)
43 ZEND_FE(json_last_error_msg, arginfo_json_last_error_msg)
45};
46
47static const zend_function_entry class_JsonSerializable_methods[] = {
48 ZEND_RAW_FENTRY("jsonSerialize", NULL, arginfo_class_JsonSerializable_jsonSerialize, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT, NULL, NULL)
50};
51
52static void register_json_symbols(int module_number)
53{
83}
84
85static zend_class_entry *register_class_JsonSerializable(void)
86{
87 zend_class_entry ce, *class_entry;
88
89 INIT_CLASS_ENTRY(ce, "JsonSerializable", class_JsonSerializable_methods);
90 class_entry = zend_register_internal_interface(&ce);
91
92 return class_entry;
93}
94
95static zend_class_entry *register_class_JsonException(zend_class_entry *class_entry_Exception)
96{
97 zend_class_entry ce, *class_entry;
98
99 INIT_CLASS_ENTRY(ce, "JsonException", NULL);
100 class_entry = zend_register_internal_class_with_flags(&ce, class_entry_Exception, 0);
101
102 return class_entry;
103}
#define NULL
Definition gdcache.h:45
json_last_error()
json_validate(string $json, int $depth=512, int $flags=0)
json_encode(mixed $value, int $flags=0, int $depth=512)
json_decode(string $json, ?bool $associative=null, int $depth=512, int $flags=0)
json_last_error_msg()
#define PHP_JSON_NUMERIC_CHECK
Definition php_json.h:67
#define PHP_JSON_UNESCAPED_SLASHES
Definition php_json.h:68
#define PHP_JSON_PARTIAL_OUTPUT_ON_ERROR
Definition php_json.h:71
#define PHP_JSON_INVALID_UTF8_IGNORE
Definition php_json.h:76
#define PHP_JSON_HEX_TAG
Definition php_json.h:62
#define PHP_JSON_FORCE_OBJECT
Definition php_json.h:66
#define PHP_JSON_PRETTY_PRINT
Definition php_json.h:69
@ PHP_JSON_ERROR_UNSUPPORTED_TYPE
Definition php_json.h:51
@ PHP_JSON_ERROR_INVALID_PROPERTY_NAME
Definition php_json.h:52
@ PHP_JSON_ERROR_DEPTH
Definition php_json.h:44
@ PHP_JSON_ERROR_NONE
Definition php_json.h:43
@ PHP_JSON_ERROR_UTF16
Definition php_json.h:53
@ PHP_JSON_ERROR_UTF8
Definition php_json.h:48
@ PHP_JSON_ERROR_INF_OR_NAN
Definition php_json.h:50
@ PHP_JSON_ERROR_NON_BACKED_ENUM
Definition php_json.h:54
@ PHP_JSON_ERROR_RECURSION
Definition php_json.h:49
@ PHP_JSON_ERROR_SYNTAX
Definition php_json.h:47
@ PHP_JSON_ERROR_STATE_MISMATCH
Definition php_json.h:45
@ PHP_JSON_ERROR_CTRL_CHAR
Definition php_json.h:46
#define PHP_JSON_UNESCAPED_LINE_TERMINATORS
Definition php_json.h:73
#define PHP_JSON_HEX_AMP
Definition php_json.h:63
#define PHP_JSON_HEX_APOS
Definition php_json.h:64
#define PHP_JSON_THROW_ON_ERROR
Definition php_json.h:80
#define PHP_JSON_BIGINT_AS_STRING
Definition php_json.h:59
#define PHP_JSON_OBJECT_AS_ARRAY
Definition php_json.h:58
#define PHP_JSON_UNESCAPED_UNICODE
Definition php_json.h:70
#define PHP_JSON_HEX_QUOT
Definition php_json.h:65
#define PHP_JSON_PRESERVE_ZERO_FRACTION
Definition php_json.h:72
#define PHP_JSON_INVALID_UTF8_SUBSTITUTE
Definition php_json.h:79
ZEND_API zend_class_entry * zend_register_internal_interface(zend_class_entry *orig_class_entry)
Definition zend_API.c:3557
ZEND_API zend_class_entry * zend_register_internal_class_with_flags(zend_class_entry *class_entry, zend_class_entry *parent_ce, uint32_t ce_flags)
Definition zend_API.c:3512
#define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(name, return_reference, required_num_args, type)
Definition zend_API.h:185
#define ZEND_FE_END
Definition zend_API.h:124
struct _zend_function_entry zend_function_entry
#define ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, allow_null)
Definition zend_API.h:205
#define INIT_CLASS_ENTRY(class_container, class_name, functions)
Definition zend_API.h:279
#define ZEND_RAW_FENTRY(zend_name, name, arg_info, flags, frameless_function_infos, doc_comment)
Definition zend_API.h:80
#define ZEND_END_ARG_INFO()
Definition zend_API.h:219
#define ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(pass_by_ref, name, type_hint, allow_null, default_value)
Definition zend_API.h:140
#define ZEND_ARG_TYPE_INFO(pass_by_ref, name, type_hint, allow_null)
Definition zend_API.h:138
#define ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(name, return_reference, required_num_args, type, allow_null)
Definition zend_API.h:208
#define ZEND_FE(name, arg_info)
Definition zend_API.h:86
#define ZEND_FUNCTION(name)
Definition zend_API.h:75
#define ZEND_ACC_ABSTRACT
#define ZEND_ACC_PUBLIC
#define CONST_PERSISTENT
#define REGISTER_LONG_CONSTANT(name, lval, flags)
struct _zend_class_entry zend_class_entry
#define MAY_BE_STRING
#define MAY_BE_FALSE
#define IS_STRING
Definition zend_types.h:606
#define IS_LONG
Definition zend_types.h:604
#define IS_MIXED
Definition zend_types.h:619
#define _IS_BOOL
Definition zend_types.h:629
value