- MFB: Added arginfo (functions)

This commit is contained in:
Felipe Pena 2008-07-03 12:21:25 +00:00
parent b5017ae85d
commit 4b50d12a48
6 changed files with 421 additions and 65 deletions

View file

@ -66,11 +66,26 @@ ZEND_END_MODULE_GLOBALS(recode)
ZEND_DECLARE_MODULE_GLOBALS(recode);
static PHP_GINIT_FUNCTION(recode);
/* {{{ arginfo */
static
ZEND_BEGIN_ARG_INFO_EX(arginfo_recode_string, 0, 0, 2)
ZEND_ARG_INFO(0, request)
ZEND_ARG_INFO(0, str)
ZEND_END_ARG_INFO()
static
ZEND_BEGIN_ARG_INFO_EX(arginfo_recode_file, 0, 0, 3)
ZEND_ARG_INFO(0, request)
ZEND_ARG_INFO(0, input)
ZEND_ARG_INFO(0, output)
ZEND_END_ARG_INFO()
/* }}} */
/* {{{ module stuff */
static const zend_function_entry php_recode_functions[] = {
PHP_FE(recode_string, NULL)
PHP_FE(recode_file, NULL)
PHP_FALIAS(recode, recode_string, NULL)
PHP_FE(recode_string, arginfo_recode_string)
PHP_FE(recode_file, arginfo_recode_file)
PHP_FALIAS(recode, recode_string, arginfo_recode_string)
{NULL, NULL, NULL}
};