From efec261b07e76f6c3e53beb831bbc2c65d8884d3 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 13 Dec 2020 16:26:19 +0100 Subject: Get rid of pcre1 --- src/sp_pcre_compat.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/sp_pcre_compat.h') diff --git a/src/sp_pcre_compat.h b/src/sp_pcre_compat.h index b429683..6fcb383 100644 --- a/src/sp_pcre_compat.h +++ b/src/sp_pcre_compat.h @@ -7,26 +7,18 @@ #undef pcre_exec #undef pcre_compile -/* We're not supporting pcre when it's not bundled with php7, - * yet. Pull-requests are welcome. */ #if HAVE_BUNDLED_PCRE #if PHP_VERSION_ID >= 70300 -#define SP_HAS_PCRE2 #include "ext/pcre/php_pcre.h" #else #include "ext/pcre/pcrelib/pcre.h" #endif #else -#define SP_HAS_PCRE2 #define PCRE2_CODE_UNIT_WIDTH 8 #include "pcre2.h" #endif -#ifdef SP_HAS_PCRE2 #define sp_pcre pcre2_code -#else -#define sp_pcre pcre -#endif sp_pcre* sp_pcre_compile(const char* str); #define sp_is_regexp_matching_zend(regexp, zstr) \ -- cgit v1.3