Changeset 1304


Ignore:
Timestamp:
2013-07-12T19:02:45+02:00 (10 months ago)
Author:
moo
Message:

Decompiler: recognize FILE

File:
1 edited

Legend:

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

    r1303 r1304  
    477477    public $namespace; 
    478478    public $namespaceDecided; 
     479    public $activeFile; 
    479480    public $activeClass; 
    480481    public $activeMethod; 
     
    13641365        $EX['lastBlock'] = null; 
    13651366        $EX['value2constant'] = array(); 
     1367        if (isset($this->activeFile)) { 
     1368            $EX['value2constant'][$this->activeFile] = '__FILE__'; 
     1369        } 
    13661370        if (isset($this->activeClass)) { 
    13671371            $EX['value2constant'][$this->activeClass] = '__CLASS__'; 
     
    25922596            return false; 
    25932597        } 
     2598        $this->activeFile = null; 
    25942599        return true; 
    25952600    } 
     
    26022607            return false; 
    26032608        } 
     2609        $this->activeFile = realpath($file); 
    26042610        return true; 
    26052611    } 
     
    26082614    { 
    26092615        $this->dc = $content; 
     2616        $this->activeFile = null; 
    26102617        return true; 
    26112618    } 
Note: See TracChangeset for help on using the changeset viewer.