From 36ab68bd25aaedc81fdf6745faf5f3a14474c53f Mon Sep 17 00:00:00 2001 From: Toon Schoenmakers Date: Tue, 19 Aug 2014 14:20:11 +0200 Subject: Fixed the compile issues against php 5.3 --- zend/exists.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'zend/exists.cpp') diff --git a/zend/exists.cpp b/zend/exists.cpp index 3add227..1177e47 100644 --- a/zend/exists.cpp +++ b/zend/exists.cpp @@ -12,6 +12,15 @@ */ #include "includes.h" +/** + * On php 5.3 ZEND_ACC_TRAIT isn't defined, so we simply define it to 0 + * so all operations with it are basically no-ops. Currently unconfirmed + * if this actually works correctly on php 5.3, but it at least compiles. + */ +#ifndef ZEND_ACC_TRAIT +#define ZEND_ACC_TRAIT 0 +#endif + /** * Open the PHP namespace */ -- cgit v1.2.3