From 61a01e1c20f87aceb69a07f62be7d09cd9c6620a Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Fri, 27 Jun 2008 19:17:29 +0000 Subject: [PATCH] - MFB: 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 964f190ea3..2c8eac54a5 100644 --- a/ext/dom/php_dom.c +++ b/ext/dom/php_dom.c @@ -480,8 +480,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 01179d8828..50c74b9968 100644 --- a/ext/json/json.c +++ b/ext/json/json.c @@ -37,13 +37,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[]. */ 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 600fc076b0..175ed71494 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.50.1