diff options
Diffstat (limited to 'ext/ereg/ereg.c')
-rw-r--r-- | ext/ereg/ereg.c | 39 |
1 files changed, 32 insertions, 7 deletions
diff --git a/ext/ereg/ereg.c b/ext/ereg/ereg.c index 42ca7c57ef..ed2d716689 100644 --- a/ext/ereg/ereg.c +++ b/ext/ereg/ereg.c @@ -27,24 +27,49 @@ #include "ext/standard/info.h" /* {{{ arginfo */ +static ZEND_BEGIN_ARG_INFO_EX(arginfo_ereg, 0, 0, 2) ZEND_ARG_INFO(0, pattern) ZEND_ARG_INFO(0, string) ZEND_ARG_INFO(1, registers) /* ARRAY_INFO(1, registers, 1) */ ZEND_END_ARG_INFO() +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_eregi, 0, 0, 2) + ZEND_ARG_INFO(0, pattern) + ZEND_ARG_INFO(0, string) + ZEND_ARG_INFO(1, registers) /* ARRAY_INFO(1, registers, 1) */ +ZEND_END_ARG_INFO() + +static ZEND_BEGIN_ARG_INFO(arginfo_ereg_replace, 0) ZEND_ARG_INFO(0, pattern) ZEND_ARG_INFO(0, replacement) ZEND_ARG_INFO(0, string) ZEND_END_ARG_INFO() +static +ZEND_BEGIN_ARG_INFO(arginfo_eregi_replace, 0) + ZEND_ARG_INFO(0, pattern) + ZEND_ARG_INFO(0, replacement) + ZEND_ARG_INFO(0, string) +ZEND_END_ARG_INFO() + +static ZEND_BEGIN_ARG_INFO_EX(arginfo_split, 0, 0, 2) ZEND_ARG_INFO(0, pattern) ZEND_ARG_INFO(0, string) ZEND_ARG_INFO(0, limit) ZEND_END_ARG_INFO() +static +ZEND_BEGIN_ARG_INFO_EX(arginfo_spliti, 0, 0, 2) + ZEND_ARG_INFO(0, pattern) + ZEND_ARG_INFO(0, string) + ZEND_ARG_INFO(0, limit) +ZEND_END_ARG_INFO() + +static ZEND_BEGIN_ARG_INFO(arginfo_sql_regcase, 0) ZEND_ARG_INFO(0, string) ZEND_END_ARG_INFO() @@ -52,13 +77,13 @@ ZEND_END_ARG_INFO() /* {{{ Function table */ const zend_function_entry ereg_functions[] = { - PHP_DEP_FE(ereg, arginfo_ereg) - PHP_DEP_FE(ereg_replace, arginfo_ereg_replace) - PHP_DEP_FE(eregi, arginfo_ereg) - PHP_DEP_FE(eregi_replace, arginfo_ereg_replace) - PHP_DEP_FE(split, arginfo_split) - PHP_DEP_FE(spliti, arginfo_split) - PHP_DEP_FE(sql_regcase, arginfo_sql_regcase) + PHP_FE(ereg, arginfo_ereg) + PHP_FE(ereg_replace, arginfo_ereg_replace) + PHP_FE(eregi, arginfo_eregi) + PHP_FE(eregi_replace, arginfo_eregi_replace) + PHP_FE(split, arginfo_split) + PHP_FE(spliti, arginfo_spliti) + PHP_FE(sql_regcase, arginfo_sql_regcase) {NULL, NULL, NULL} }; /* }}} */ |