Changeset 819 for trunk/phpdc.phpr


Ignore:
Timestamp:
2011-06-08T04:51:59+02:00 (3 years ago)
Author:
moo
Message:

decompiler: fix handling of stdin. support of exported dasm result

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpdc.phpr

    r605 r819  
    1414 
    1515$dc = new Decompiler(); 
    16 if (isset($argv[1])) { 
     16if (isset($argv[2])) { 
     17    eval('$dc->dc = ' . file_get_contents($argv[2]) . ';'); 
     18} 
     19else if (isset($argv[1])) { 
    1720    $dc->decompileFile($argv[1]); 
    1821} 
     
    2528        $phpcode .= fgets(stdin); 
    2629    } 
    27     $dc->decompileFile($phpcode); 
     30    $dc->decompileString($phpcode); 
    2831} 
    2932$dc->output(); 
Note: See TracChangeset for help on using the changeset viewer.