diff options
| author | jvoisin | 2018-12-26 12:26:16 +0100 |
|---|---|---|
| committer | jvoisin | 2018-12-26 12:26:16 +0100 |
| commit | 2545525dc40cd8e6ace33ac1d2771369ada4af29 (patch) | |
| tree | 0ffaf29b78a3f2fdc044dee4a767c4b995eca8eb /src/php_snuffleupagus.h | |
| parent | 63898e19a2050cb797e8f36e7389dbb553343af7 (diff) | |
Add a PHP5 guard
Diffstat (limited to 'src/php_snuffleupagus.h')
| -rw-r--r-- | src/php_snuffleupagus.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ | |||
| 26 | #include "zend_extensions.h" | 26 | #include "zend_extensions.h" |
| 27 | 27 | ||
| 28 | /* Compatibility */ | 28 | /* Compatibility */ |
| 29 | #if PHP_VERSION_ID < 70000 | ||
| 30 | #error Snuffleupagus only works with PHP7+. You shouldn't use PHP5 anyway, \ | ||
| 31 | since it's not supported anymore: https://secure.php.net/supported-versions.php | ||
| 32 | #endif | ||
| 29 | #if PHP_VERSION_ID < 70200 | 33 | #if PHP_VERSION_ID < 70200 |
| 30 | typedef void (*zif_handler)(INTERNAL_FUNCTION_PARAMETERS); | 34 | typedef void (*zif_handler)(INTERNAL_FUNCTION_PARAMETERS); |
| 31 | #endif | 35 | #endif |
