summaryrefslogtreecommitdiff
path: root/src/sp_pcre_compat.c
diff options
context:
space:
mode:
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