Changeset 752 in svn


Ignore:
Timestamp:
2011-04-17T06:06:50+02:00 (4 years ago)
Author:
Xuefer
Message:

DECLARE_CONST

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Decompiler.class.php

    r751 r752  
    15691569                    $this->dfunction($this->dc['function_table'][$op1['constant']], $EX['indent']);
    15701570                    break;
    1571                 case XC_DECLARE_LAMBDA_FUNCTION:
     1571                case XC_DECLARE_LAMBDA_FUNCTION: // {{{
    15721572                    ob_start();
    15731573                    $this->dfunction($this->dc['function_table'][$op1['constant']], $EX['indent']);
    15741574                    $resvar = ob_get_clean();
    15751575                    $istmpres = true;
     1576                    break;
     1577                    // }}}
     1578                case XC_DECLARE_CONST:
     1579                    $resvar = 'const ' . unquoteName($this->getOpVal($op1, $EX), $EX) . ' = ' . str($this->getOpVal($op2, $EX));
    15761580                    break;
    15771581                case XC_DECLARE_FUNCTION_OR_CLASS:
  • trunk/decompilesample.php

    r751 r752  
    276276
    277277//* >= PHP 5.3
     278echo 'PHP 5.3+ code testing';
     279const CONST_VALUE = 1;
    278280echo $this::CONST_VALUE;
    279281echo $a::CONST_VALUE;
     282echo CONST_VALUE;
    280283$this::__construct();
    281284$obj::__construct();
Note: See TracChangeset for help on using the changeset viewer.