diff options
author | Remi Collet <remi@remirepo.net> | 2019-03-15 09:38:14 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2019-03-15 09:38:14 +0100 |
commit | c4e942953e32789edb2d2d978b1dc663a45ca1ce (patch) | |
tree | 8a2d7f4afc1163e587ac37c49ff4d856ce6af147 /18.patch | |
parent | 23f2f19feff8cbe58faef9f7bdf1e54dce53ed74 (diff) |
update to 0.0.4
drop patch merged upstream
open https://github.com/ph4r05/php_aho_corasick/pull/17 fix version
open https://github.com/ph4r05/php_aho_corasick/pull/16 travis
run upstream test suite added in
https://github.com/ph4r05/php_aho_corasick/pull/13
open https://github.com/ph4r05/php_aho_corasick/pull/18 arginfo
Diffstat (limited to '18.patch')
-rw-r--r-- | 18.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/18.patch b/18.patch new file mode 100644 index 0000000..59e3d97 --- /dev/null +++ b/18.patch @@ -0,0 +1,53 @@ +From b70b6a92c72e053c9ad6ffe25a3e73849ff46379 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Fri, 15 Mar 2019 08:45:22 +0100 +Subject: [PATCH] add arginfo to all functions for reflection + +--- + src/php_ahocorasick.c | 32 ++++++++++++++++++++++++++------ + 1 file changed, 26 insertions(+), 6 deletions(-) + +diff --git a/src/php_ahocorasick.c b/src/php_ahocorasick.c +index 0ba9c48..f825c4b 100644 +--- a/src/php_ahocorasick.c ++++ b/src/php_ahocorasick.c +@@ -56,13 +56,33 @@ static char exception_buffer[8192]; + + ZEND_DECLARE_MODULE_GLOBALS(ahocorasick) + ++ZEND_BEGIN_ARG_INFO_EX(arginfo_ahocorasick_match, 0, 0, 2) ++ ZEND_ARG_INFO(0, needle) ++ ZEND_ARG_INFO(0, id) ++ ZEND_ARG_INFO(0, findAll) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_ahocorasick_id, 0, 0, 1) ++ ZEND_ARG_INFO(0, id) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_ahocorasick_init, 0, 0, 1) ++ ZEND_ARG_INFO(0, data) ++ZEND_END_ARG_INFO() ++ ++ZEND_BEGIN_ARG_INFO_EX(arginfo_ahocorasick_add_patterns, 0, 0, 2) ++ ZEND_ARG_INFO(0, id) ++ ZEND_ARG_INFO(0, patterns) ++ZEND_END_ARG_INFO() ++ ++ + static zend_function_entry ahocorasick_functions[] = { +- PHP_FE(ahocorasick_match, NULL) +- PHP_FE(ahocorasick_init, NULL) +- PHP_FE(ahocorasick_deinit, NULL) +- PHP_FE(ahocorasick_isValid, NULL) +- PHP_FE(ahocorasick_finalize, NULL) +- PHP_FE(ahocorasick_add_patterns, NULL) ++ PHP_FE(ahocorasick_match, arginfo_ahocorasick_match) ++ PHP_FE(ahocorasick_init, arginfo_ahocorasick_init) ++ PHP_FE(ahocorasick_deinit, arginfo_ahocorasick_id) ++ PHP_FE(ahocorasick_isValid, arginfo_ahocorasick_id) ++ PHP_FE(ahocorasick_finalize, arginfo_ahocorasick_id) ++ PHP_FE(ahocorasick_add_patterns, arginfo_ahocorasick_add_patterns) + PHP_FE_END + }; + |