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 --- 5687f6975d8c18223f114d0d0f1246c505b6f101.patch | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 5687f6975d8c18223f114d0d0f1246c505b6f101.patch (limited to '5687f6975d8c18223f114d0d0f1246c505b6f101.patch') diff --git a/5687f6975d8c18223f114d0d0f1246c505b6f101.patch b/5687f6975d8c18223f114d0d0f1246c505b6f101.patch new file mode 100644 index 0000000..d8276cf --- /dev/null +++ b/5687f6975d8c18223f114d0d0f1246c505b6f101.patch @@ -0,0 +1,25 @@ +From 5687f6975d8c18223f114d0d0f1246c505b6f101 Mon Sep 17 00:00:00 2001 +From: Dusan Klinec +Date: Fri, 15 Mar 2019 08:55:50 +0100 +Subject: [PATCH] zstr fix + +--- + src/php_ahocorasick.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/php_ahocorasick.c b/src/php_ahocorasick.c +index f825c4b..950d3b5 100644 +--- a/src/php_ahocorasick.c ++++ b/src/php_ahocorasick.c +@@ -254,9 +254,9 @@ static inline int php_ahocorasick_process_pattern(zend_long pidx, ahocorasick_pa + keyFound|=0x10; + } else { + php_error_docref(NULL TSRMLS_CC, E_WARNING, +- "Invalid structure (unrecognized sub-array key: [%s])! " ++ "Invalid structure (unrecognized sub-array key)! " + "Only allowed are: {key, id, value, aux, ignoreCase}. Cannot initialize. " +- "Pattern index: %ld", key, (long)pidx); ++ "Pattern index: %ld", (long)pidx); + returnCode = -2; + break; + } -- cgit