summaryrefslogtreecommitdiff
path: root/ext/json/json.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/json/json.c')
-rw-r--r--ext/json/json.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/ext/json/json.c b/ext/json/json.c
index dd7bb1e810..5f3a811dfa 100644
--- a/ext/json/json.c
+++ b/ext/json/json.c
@@ -42,13 +42,26 @@ static const char digits[] = "0123456789abcdef";
#define PHP_JSON_HEX_APOS (1<<2)
#define PHP_JSON_HEX_QUOT (1<<3)
+/* {{{ arginfo */
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_json_encode, 0, 0, 1)
+ ZEND_ARG_INFO(0, value)
+ZEND_END_ARG_INFO()
+
+static
+ZEND_BEGIN_ARG_INFO_EX(arginfo_json_decode, 0, 0, 1)
+ ZEND_ARG_INFO(0, json)
+ ZEND_ARG_INFO(0, assoc)
+ZEND_END_ARG_INFO()
+/* }}} */
+
/* {{{ json_functions[]
*
* Every user visible function must have an entry in json_functions[].
*/
static const function_entry json_functions[] = {
- PHP_FE(json_encode, NULL)
- PHP_FE(json_decode, NULL)
+ PHP_FE(json_encode, arginfo_json_encode)
+ PHP_FE(json_decode, arginfo_json_decode)
{NULL, NULL, NULL} /* Must be the last line in json_functions[] */
};
/* }}} */