Changeset 819 in svn for trunk


Ignore:
Timestamp:
2011-06-08T02:51:59Z (4 years ago)
Author:
Xuefer
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Decompiler.class.php

    r811 r819  
    25752575    }
    25762576    // }}}
     2577    function decompileDasm($content) // {{{
     2578    {
     2579        $this->dc = $content;
     2580    }
     2581    // }}}
    25772582    function output() // {{{
    25782583    {
  • 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.