From 2545525dc40cd8e6ace33ac1d2771369ada4af29 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 26 Dec 2018 12:26:16 +0100 Subject: Add a PHP5 guard --- src/php_snuffleupagus.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/php_snuffleupagus.h b/src/php_snuffleupagus.h index 10e11f1..5129011 100644 --- a/src/php_snuffleupagus.h +++ b/src/php_snuffleupagus.h @@ -26,6 +26,10 @@ #include "zend_extensions.h" /* Compatibility */ +#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 +#endif #if PHP_VERSION_ID < 70200 typedef void (*zif_handler)(INTERNAL_FUNCTION_PARAMETERS); #endif -- cgit v1.3