summaryrefslogtreecommitdiff
path: root/src/sp_pcre_compat.c
diff options
context:
space:
mode:
authorRemi Collet2021-01-04 19:32:08 +0100
committerGitHub2021-01-04 18:32:08 +0000
commit48f927e9694fcfd76d9fe97542359c8b0bd0a46d (patch)
tree9ad8fa51d77c3f5db0e0381d5fba10a4d550f7c2 /src/sp_pcre_compat.c
parent1e8e75b554955cc59866a41bb32853a96e8e83ae (diff)
Fix #368 build with system libpcre
Diffstat (limited to 'src/sp_pcre_compat.c')
-rw-r--r--src/sp_pcre_compat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_pcre_compat.c b/src/sp_pcre_compat.c
index b4d29f0..283eeb7 100644
--- a/src/sp_pcre_compat.c
+++ b/src/sp_pcre_compat.c
@@ -15,7 +15,7 @@ sp_pcre* sp_pcre_compile(const char* const pattern) {
15 const char* pcre_error = NULL; 15 const char* pcre_error = NULL;
16 int erroroffset; 16 int erroroffset;
17 ret = 17 ret =
18 php_pcre_compile(pattern, PCRE_CASELESS, &pcre_error, &erroroffset, NULL); 18 pcre_compile(pattern, PCRE_CASELESS, &pcre_error, &erroroffset, NULL);
19#endif 19#endif
20 20
21 if (NULL == ret) { 21 if (NULL == ret) {
@@ -38,7 +38,7 @@ bool ZEND_HOT sp_is_regexp_matching_len(const sp_pcre* regexp, const char* str,
38 ret = pcre2_match(regexp, (PCRE2_SPTR)str, len, 0, 0, match_data, NULL); 38 ret = pcre2_match(regexp, (PCRE2_SPTR)str, len, 0, 0, match_data, NULL);
39#else 39#else
40 int vec[30]; 40 int vec[30];
41 ret = php_pcre_exec(regexp, NULL, str, len, 0, 0, vec, 41 ret = pcre_exec(regexp, NULL, str, len, 0, 0, vec,
42 sizeof(vec) / sizeof(int)); 42 sizeof(vec) / sizeof(int));
43#endif 43#endif
44 44