Changeset 71137b9 in git


Ignore:
Timestamp:
2014-05-27T15:54:45Z (6 years ago)
Author:
Xuefer <xuefer@…>
Branches:
master, trunk
Children:
9c0999b
Parents:
5f8c3d0
Message:

fix build for pre-5.6

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1489 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • devel/sample.cpp.php

    r5f8c3d0 r71137b9  
    4545    static public $static_const11 = array(self::CONST_VALUE => self::CONST_VALUE);
    4646    static public $static_const12 = array(ClassName::CONST_VALUE => ClassName::CONST_VALUE);
     47#if PHP_VERSION >= 560
    4748    static public $ast_binop = ClassName::CONST_VALUE + ClassName::CONST_VALUE;
    4849    static public $ast_and = ClassName::CONST_VALUE && 1;
     
    5152    static public $ast_unaryPlus = +ClassName::CONST_VALUE;
    5253    static public $ast_unaryMinus = -ClassName::CONST_VALUE;
     54#endif
    5355    /** doc */
    5456    static public $public_static = array(2, 'str');
  • lib/Decompiler.class.php

    r5f8c3d0 r71137b9  
    649649                XC_JMPZ_EX             => "&&",
    650650                XC_JMPNZ_EX            => "||",
    651 
    652                 // zend_ast
    653                 ZEND_BOOL_AND          => '&&',
    654                 ZEND_BOOL_OR           => '||',
    655651                );
     652        if (defined('IS_CONSTANT_AST')) {
     653            $this->binops[ZEND_BOOL_AND] = '&&';
     654            $this->binops[ZEND_BOOL_OR]  = '||';
     655        }
    656656        // }}}
    657657        $this->includeTypes = array( // {{{
  • xcache/xc_compatibility.h

    ra35afeb r71137b9  
    9898#endif
    9999/* }}} */
     100
     101#ifndef ZEND_ENGINE_2_6
     102typedef void zend_ast;
     103#endif
    100104
    101105#ifdef ZEND_ENGINE_2_4
Note: See TracChangeset for help on using the changeset viewer.