From c4e942953e32789edb2d2d978b1dc663a45ca1ce Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 15 Mar 2019 09:38:14 +0100 Subject: 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 --- 18.patch | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 18.patch (limited to '18.patch') 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 +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 + }; + -- cgit