Ignore:
Timestamp:
2013-09-16T17:48:48+02:00 (20 months ago)
Author:
moo
Message:

Decompiler: fixes #318 (support for const in static array index/value)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mod_disassembler/sample.cpp.php

    r1373 r1374  
    3131        CONST_VALUE => CONST_VALUE
    3232        );
    33     static public $static2 = array(self::CONST_VALUE => self::CONST_VALUE);
     33    static public $static_const1 = CONST_VALUE;
     34    static public $static_const2 = self::CONST_VALUE;
     35    static public $static_const3 = ClassName::CONST_VALUE;
     36    static public $static_const4 = array(CONST_VALUE => 'test');
     37    static public $static_const5 = array(self::CONST_VALUE => 'test');
     38    static public $static_const6 = array(ClassName::CONST_VALUE => 'test');
     39    static public $static_const7 = array('test' => CONST_VALUE);
     40    static public $static_const8 = array('test' => self::CONST_VALUE);
     41    static public $static_const9 = array('test' => ClassName::CONST_VALUE);
     42    static public $static_const10 = array(CONST_VALUE => CONST_VALUE);
     43    static public $static_const11 = array(self::CONST_VALUE => self::CONST_VALUE);
     44    static public $static_const12 = array(ClassName::CONST_VALUE => ClassName::CONST_VALUE);
    3445    /** doc */
    3546    static public $public_static = array(2, 'str');
Note: See TracChangeset for help on using the changeset viewer.