summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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