From 6b380295ef0a70ec8d7fd80b224bd1fb2abe8115 Mon Sep 17 00:00:00 2001 From: Toon Schoenmakers Date: Thu, 12 May 2016 13:21:23 +0200 Subject: Show an error message about not being compatible with php7 in case you're trying to compile it with php7 --- zend/includes.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zend/includes.h b/zend/includes.h index 4d35cfd..89054c3 100644 --- a/zend/includes.h +++ b/zend/includes.h @@ -39,6 +39,13 @@ #include #include +/** + * 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 */ -- cgit v1.2.3