summaryrefslogtreecommitdiffstats
path: root/17.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-03-15 09:38:14 +0100
committerRemi Collet <remi@remirepo.net>2019-03-15 09:38:14 +0100
commitc4e942953e32789edb2d2d978b1dc663a45ca1ce (patch)
tree8a2d7f4afc1163e587ac37c49ff4d856ce6af147 /17.patch
parent23f2f19feff8cbe58faef9f7bdf1e54dce53ed74 (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 '17.patch')
-rw-r--r--17.patch52
1 files changed, 52 insertions, 0 deletions
diff --git a/17.patch b/17.patch
new file mode 100644
index 0000000..e1a769f
--- /dev/null
+++ b/17.patch
@@ -0,0 +1,52 @@
+From c14164b2789c6b01212243a152035db9a5452688 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Fri, 15 Mar 2019 08:29:32 +0100
+Subject: [PATCH] fix reported version in phpinfo / reflection
+
+---
+ src/php_ahocorasick.c | 6 +-----
+ src/php_ahocorasick.h | 2 +-
+ 2 files changed, 2 insertions(+), 6 deletions(-)
+
+diff --git a/src/php_ahocorasick.c b/src/php_ahocorasick.c
+index 5387fef..0ba9c48 100644
+--- a/src/php_ahocorasick.c
++++ b/src/php_ahocorasick.c
+@@ -63,13 +63,11 @@ static zend_function_entry ahocorasick_functions[] = {
+ PHP_FE(ahocorasick_isValid, NULL)
+ PHP_FE(ahocorasick_finalize, NULL)
+ PHP_FE(ahocorasick_add_patterns, NULL)
+- {NULL, NULL, NULL}
++ PHP_FE_END
+ };
+
+ zend_module_entry ahocorasick_module_entry = {
+-#if ZEND_MODULE_API_NO >= 20010901
+ STANDARD_MODULE_HEADER,
+-#endif
+ PHP_AHOCORASICK_EXTNAME,
+ ahocorasick_functions,
+ PHP_MINIT(ahocorasick),
+@@ -77,9 +75,7 @@ zend_module_entry ahocorasick_module_entry = {
+ PHP_RINIT(ahocorasick),
+ NULL,
+ NULL,
+-#if ZEND_MODULE_API_NO >= 20010901
+ PHP_AHOCORASICK_VERSION,
+-#endif
+ STANDARD_MODULE_PROPERTIES
+ };
+
+diff --git a/src/php_ahocorasick.h b/src/php_ahocorasick.h
+index cab825c..99301ff 100644
+--- a/src/php_ahocorasick.h
++++ b/src/php_ahocorasick.h
+@@ -122,7 +122,7 @@ ZEND_END_MODULE_GLOBALS(ahocorasick)
+ #define AHOCORASICK_G(v) (ahocorasick_globals.v)
+ #endif
+
+-#define PHP_AHOCORASICK_VERSION "2.0"
++#define PHP_AHOCORASICK_VERSION "0.0.4"
+ #define PHP_AHOCORASICK_EXTNAME "ahocorasick"
+
+ /**