xref: /PHP-8.0/ext/json/json_arginfo.h (revision 45fa7596)
1 /* This is a generated file, edit the .stub.php file instead.
2  * Stub hash: 200044f4196cd8efd1ec9a2e93d4bbb63618b3c9 */
3 
4 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_json_encode, 0, 1, MAY_BE_STRING|MAY_BE_FALSE)
5 	ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
6 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
7 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, depth, IS_LONG, 0, "512")
8 ZEND_END_ARG_INFO()
9 
10 ZEND_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")
13 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, depth, IS_LONG, 0, "512")
14 	ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, flags, IS_LONG, 0, "0")
15 ZEND_END_ARG_INFO()
16 
17 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_json_last_error, 0, 0, IS_LONG, 0)
18 ZEND_END_ARG_INFO()
19 
20 ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_json_last_error_msg, 0, 0, IS_STRING, 0)
21 ZEND_END_ARG_INFO()
22 
23 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_JsonSerializable_jsonSerialize, 0, 0, 0)
24 ZEND_END_ARG_INFO()
25 
26 
27 ZEND_FUNCTION(json_encode);
28 ZEND_FUNCTION(json_decode);
29 ZEND_FUNCTION(json_last_error);
30 ZEND_FUNCTION(json_last_error_msg);
31 
32 
33 static const zend_function_entry ext_functions[] = {
34 	ZEND_FE(json_encode, arginfo_json_encode)
35 	ZEND_FE(json_decode, arginfo_json_decode)
36 	ZEND_FE(json_last_error, arginfo_json_last_error)
37 	ZEND_FE(json_last_error_msg, arginfo_json_last_error_msg)
38 	ZEND_FE_END
39 };
40 
41 
42 static const zend_function_entry class_JsonSerializable_methods[] = {
43 	ZEND_ABSTRACT_ME_WITH_FLAGS(JsonSerializable, jsonSerialize, arginfo_class_JsonSerializable_jsonSerialize, ZEND_ACC_PUBLIC|ZEND_ACC_ABSTRACT)
44 	ZEND_FE_END
45 };
46 
47 
48 static const zend_function_entry class_JsonException_methods[] = {
49 	ZEND_FE_END
50 };
51