Ignore:
Timestamp:
2014-05-27T06:53:34+02:00 (3 months ago)
Author:
moo
Message:

WIP PHP_5_6 support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Decompiler.class.php

    r1374 r1486  
    27972797 
    27982798// {{{ defines 
    2799 define('ZEND_ENGINE_2_4', PHP_VERSION >= "5.4"); 
     2799define('ZEND_ENGINE_2_6', PHP_VERSION >= "5.6"); 
     2800define('ZEND_ENGINE_2_5', ZEND_ENGINE_2_6 || PHP_VERSION >= "5.5."); 
     2801define('ZEND_ENGINE_2_4', ZEND_ENGINE_2_5 || PHP_VERSION >= "5.4."); 
    28002802define('ZEND_ENGINE_2_3', ZEND_ENGINE_2_4 || PHP_VERSION >= "5.3."); 
    28012803define('ZEND_ENGINE_2_2', ZEND_ENGINE_2_3 || PHP_VERSION >= "5.2."); 
     
    29262928define('IS_RESOURCE', 7); 
    29272929define('IS_CONSTANT', 8); 
    2928 define('IS_CONSTANT_ARRAY',   9); 
     2930if (ZEND_ENGINE_2_6) { 
     2931    define('IS_CONSTANT_ARRAY', -1); 
     2932    define('IS_CONSTANT_AST', 9); 
     2933} 
     2934else { 
     2935    define('IS_CONSTANT_ARRAY', 9); 
     2936} 
    29292937if (ZEND_ENGINE_2_4) { 
    29302938    define('IS_CALLABLE', 10); 
Note: See TracChangeset for help on using the changeset viewer.