summaryrefslogtreecommitdiff
path: root/src/php_snuffleupagus.h
diff options
context:
space:
mode:
authorjvoisin2021-01-03 14:12:54 +0100
committerjvoisin2021-01-03 14:12:54 +0100
commit3c528d9d03cec872382a6f400b5701a8fbfd59b4 (patch)
tree8324904b1e33755f77235116ff63ce6dfaf07ab7 /src/php_snuffleupagus.h
parente334be58b9baef8c050925e74fc96b3911c5ea51 (diff)
Don't check for bundled pcre in php8
Patch coming from https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/16372/diffs#diff-content-c2549fd272f686fb013e5c74164615ca073560bb
Diffstat (limited to 'src/php_snuffleupagus.h')
-rw-r--r--src/php_snuffleupagus.h7
1 files changed, 4 insertions, 3 deletions
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 @@
45#include "zend_vm.h" 45#include "zend_vm.h"
46 46
47/* Compatibility */ 47/* Compatibility */
48#if ( !HAVE_PCRE && !HAVE_BUNDLED_PCRE )
49#error Snuffleupagus requires PHP7+ with PCRE support
50#endif
51#if PHP_VERSION_ID < 70000 48#if PHP_VERSION_ID < 70000
52#error Snuffleupagus only works with PHP7+. You shouldn't use PHP5 anyway, \ 49#error Snuffleupagus only works with PHP7+. You shouldn't use PHP5 anyway, \
53 since it's not supported anymore: https://secure.php.net/supported-versions.php 50 since it's not supported anymore: https://secure.php.net/supported-versions.php
@@ -58,6 +55,10 @@ typedef void (*zif_handler)(INTERNAL_FUNCTION_PARAMETERS);
58#if PHP_VERSION_ID >= 80000 55#if PHP_VERSION_ID >= 80000
59#define TSRMLS_FETCH() 56#define TSRMLS_FETCH()
60#define TSRMLS_C 57#define TSRMLS_C
58#else
59#if ( !HAVE_PCRE && !HAVE_BUNDLED_PCRE )
60#error Snuffleupagus requires PHP7+ with PCRE support
61#endif
61#endif 62#endif
62 63
63#define SP_CONFIG_VALID 1 64#define SP_CONFIG_VALID 1