summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorXuefer <xuefer@gmail.com>2014-05-27 15:54:45 +0000
committerXuefer <xuefer@gmail.com>2014-05-27 15:54:45 +0000
commit71137b9c29f1c1eb9a4f53d012e8548611f8e0d6 (patch)
tree75301d06b5a915edf3d140e5507f19eb64d762b5 /devel
parent5f8c3d0ee3de8611a8b98367da46ea28179435db (diff)
downloadxcache-71137b9c29f1c1eb9a4f53d012e8548611f8e0d6.tar.gz
xcache-71137b9c29f1c1eb9a4f53d012e8548611f8e0d6.zip
fix build for pre-5.6
git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1489 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
Diffstat (limited to 'devel')
-rw-r--r--devel/sample.cpp.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/devel/sample.cpp.php b/devel/sample.cpp.php
index 5e3264b..7a90d8c 100644
--- a/devel/sample.cpp.php
+++ b/devel/sample.cpp.php
@@ -44,12 +44,14 @@ abstract class ClassName
static public $static_const10 = array(CONST_VALUE => CONST_VALUE);
static public $static_const11 = array(self::CONST_VALUE => self::CONST_VALUE);
static public $static_const12 = array(ClassName::CONST_VALUE => ClassName::CONST_VALUE);
+#if PHP_VERSION >= 560
static public $ast_binop = ClassName::CONST_VALUE + ClassName::CONST_VALUE;
static public $ast_and = ClassName::CONST_VALUE && 1;
static public $ast_or = ClassName::CONST_VALUE || 2;
static public $ast_select = ClassName::CONST_VALUE ? a : b;
static public $ast_unaryPlus = +ClassName::CONST_VALUE;
static public $ast_unaryMinus = -ClassName::CONST_VALUE;
+#endif
/** doc */
static public $public_static = array(2, 'str');
/** doc */