diff options
Diffstat (limited to '17.patch')
-rw-r--r-- | 17.patch | 52 |
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" + + /** |