summaryrefslogtreecommitdiffstats
path: root/18.patch
diff options
context:
space:
mode:
Diffstat (limited to '18.patch')
-rw-r--r--18.patch53
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
+ };
+