From 3c528d9d03cec872382a6f400b5701a8fbfd59b4 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 3 Jan 2021 14:12:54 +0100 Subject: Don't check for bundled pcre in php8 Patch coming from https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/16372/diffs#diff-content-c2549fd272f686fb013e5c74164615ca073560bb --- src/php_snuffleupagus.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/php_snuffleupagus.h') diff --git a/src/php_snuffleupagus.h b/src/php_snuffleupagus.h index dc0a471..248045c 100644 --- a/src/php_snuffleupagus.h +++ b/src/php_snuffleupagus.h @@ -45,9 +45,6 @@ #include "zend_vm.h" /* Compatibility */ -#if ( !HAVE_PCRE && !HAVE_BUNDLED_PCRE ) -#error Snuffleupagus requires PHP7+ with PCRE support -#endif #if PHP_VERSION_ID < 70000 #error Snuffleupagus only works with PHP7+. You shouldn't use PHP5 anyway, \ since it's not supported anymore: https://secure.php.net/supported-versions.php @@ -58,6 +55,10 @@ typedef void (*zif_handler)(INTERNAL_FUNCTION_PARAMETERS); #if PHP_VERSION_ID >= 80000 #define TSRMLS_FETCH() #define TSRMLS_C +#else +#if ( !HAVE_PCRE && !HAVE_BUNDLED_PCRE ) +#error Snuffleupagus requires PHP7+ with PCRE support +#endif #endif #define SP_CONFIG_VALID 1 -- cgit v1.3