From 498340e928d4145620726aea249604e197724701 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 12 Jan 2019 18:56:36 +0100 Subject: Make compilation stop gracefully in the absence of PCRE --- src/php_snuffleupagus.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/php_snuffleupagus.h b/src/php_snuffleupagus.h index 5129011..e7b5dc1 100644 --- a/src/php_snuffleupagus.h +++ b/src/php_snuffleupagus.h @@ -26,6 +26,9 @@ #include "zend_extensions.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 -- cgit v1.3