diff options
author | Toon Schoenmakers <toon.schoenmakers@copernica.com> | 2016-05-12 13:21:23 +0200 |
---|---|---|
committer | Toon Schoenmakers <toon.schoenmakers@copernica.com> | 2016-05-12 13:21:23 +0200 |
commit | 6b380295ef0a70ec8d7fd80b224bd1fb2abe8115 (patch) | |
tree | 55d275b2d454f9d8537e249ee86c78f5e5228549 | |
parent | 570590058d16274005a4994fd8f1046d0eaf7f74 (diff) |
Show an error message about not being compatible with php7 in case you're trying to compile it with php7
-rw-r--r-- | zend/includes.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/zend/includes.h b/zend/includes.h index 4d35cfd..89054c3 100644 --- a/zend/includes.h +++ b/zend/includes.h @@ -40,6 +40,13 @@ #include <SAPI.h> /** + * We don't compile for php7 just yet + */ +#if PHP_VERSION_ID >= 70000 +# error "This library is currently not yet compatible with php7." +#endif + +/** * Macro to convert results to success status */ #define BOOL2SUCCESS(b) ((b) ? SUCCESS : FAILURE) |