diff options
author | Toon Schoenmakers <toon.schoenmakers@copernica.com> | 2014-08-19 14:20:11 +0200 |
---|---|---|
committer | Toon Schoenmakers <toon.schoenmakers@copernica.com> | 2014-08-19 14:20:11 +0200 |
commit | 36ab68bd25aaedc81fdf6745faf5f3a14474c53f (patch) | |
tree | 6edbb9a5cd0d7e138a2ffac28863f6942a87b603 /zend/exists.cpp | |
parent | cc106471bee34549d0db18a6d3797e791853fc6c (diff) |
Fixed the compile issues against php 5.3
Diffstat (limited to 'zend/exists.cpp')
-rw-r--r-- | zend/exists.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/zend/exists.cpp b/zend/exists.cpp index 3add227..1177e47 100644 --- a/zend/exists.cpp +++ b/zend/exists.cpp @@ -13,6 +13,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 */ namespace Php { |