Ignore:
Timestamp:
2011-04-17T06:00:31+02:00 (3 years ago)
Author:
moo
Message:

decompiler: improvements late binding function, sample code organize

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/decompilesample.php

    r750 r751  
    9090function f1($f) 
    9191{ 
     92    echo __FUNCTION__; 
    9293    echo $f; 
    9394} 
     
    149150} 
    150151 
     152if ($late) { 
     153class LateBindingClass 
     154{} 
     155 
     156function lateBindingFunction($arg) 
     157{ 
     158    echo 'lateFunction'; 
     159} 
     160} 
     161 
    151162echo "\r\n"; 
    152163echo "\r"; 
     
    155166$object = new ClassName(); 
    156167$object = new $className(); 
    157 try { 
    158     echo 'code being try'; 
    159 } 
    160 catch (Exception $e) { 
    161     echo $e; 
    162 } 
     168$result = $object instanceof ClassName; 
    163169$cloned = clone $object; 
    164170$a = 1; 
     
    192198$a = $obj->b--; 
    193199$a = --$obj->b; 
     200$a = $b xor $c; 
     201$a = !$b; 
    194202$a = $b and $c; 
    195203$a = $b or $c; 
    196 $a = $b xor $c; 
    197 $a = !$b; 
    198204$a = $b && $c; 
    199205$a = $b || $c; 
    200206$a = $b ? $c : $d; 
    201207$a = f1() ? f2() : f3(); 
    202 $a = $b instanceof ClassName; 
     208 
     209try { 
     210    echo 'outer try 1'; 
     211    try { 
     212        echo 'inner try'; 
     213    } 
     214    catch (InnerException $e) { 
     215        echo $e; 
     216    } 
     217    echo 'outer try 2'; 
     218} 
     219catch (OuterException $e) { 
     220    echo $e; 
     221} 
    203222 
    204223if ($a) { 
     
    253272include 'include.php'; 
    254273include_once 'include_once.php'; 
     274echo __FILE__; 
     275echo __LINE__; 
    255276 
    256277//* >= PHP 5.3 
Note: See TracChangeset for help on using the changeset viewer.