From cb0d08699d0bd1bc0882436b6f231e5fe6522508 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Fri, 27 Jun 2008 19:16:17 +0000 Subject: [PATCH] - Added arginfo --- ext/dom/php_dom.c | 9 ++++++++- ext/json/json.c | 17 +++++++++++++++-- ext/pdo/pdo.c | 8 +++++++- 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/ext/dom/php_dom.c b/ext/dom/php_dom.c index eb7562a1b4..5aa9400a8a 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -503,8 +503,15 @@ zend_object_value dom_objects_store_clone_obj(zval *zobject TSRMLS_DC) return retval; } +/* {{{ arginfo */ +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_dom_import_simplexml, 0, 0, 1) + ZEND_ARG_INFO(0, node) +ZEND_END_ARG_INFO() +/* }}} */ + static const zend_function_entry dom_functions[] = { - PHP_FE(dom_import_simplexml, NULL) + PHP_FE(dom_import_simplexml, arginfo_dom_import_simplexml) {NULL, NULL, NULL} }; 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[] */ }; /* }}} */ diff --git a/ext/pdo/pdo.c b/ext/pdo/pdo.c index ff19412599..3ebfe47b95 100755 --- a/ext/pdo/pdo.c +++ b/ext/pdo/pdo.c @@ -113,9 +113,15 @@ PHP_FUNCTION(pdo_drivers) } /* }}} */ +/* {{{ arginfo */ +static +ZEND_BEGIN_ARG_INFO(arginfo_pdo_drivers, 0) +ZEND_END_ARG_INFO() +/* }}} */ + /* {{{ pdo_functions[] */ const zend_function_entry pdo_functions[] = { - PHP_FE(pdo_drivers, NULL) + PHP_FE(pdo_drivers, arginfo_pdo_drivers) {NULL, NULL, NULL} }; /* }}} */ -- 2.40.0