Changeset 820
- Timestamp:
- 2011-06-08T05:45:25+02:00 (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
Decompiler.class.php (modified) (1 diff)
-
phpdop.phpr (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Decompiler.class.php
r819 r820 906 906 return; 907 907 } 908 if ($firstOp['opcode'] == XC_JMPZ && !empty($firstOp['jmpouts']) 909 && $firstOp['jmpouts'][0] - 1 == $range[1] && $opcodes[$firstOp['jmpouts'][0] - 1]['opcode'] == XC_RETURN) { 910 $this->beginComplexBlock($EX); 911 $this->removeJmpInfo($EX, $range[0]); 912 $condition = $this->getOpVal($opcodes[$range[0]]['op1'], $EX); 913 914 echo $indent, 'if (', str($condition, $EX), ') ', '{', PHP_EOL; 915 $this->beginScope($EX); 916 $this->recognizeAndDecompileClosedBlocks($EX, $range); 917 $this->endScope($EX); 918 echo $indent, '}', PHP_EOL; 919 $this->endComplexBlock($EX); 920 return; 921 } 908 922 // }}} 909 923 // {{{ try/catch -
trunk/phpdop.phpr
r759 r820 95 95 } 96 96 $decompiler = new Decompiler(); 97 $pk = xcache_dasm_file($argv[1]); 97 if (isset($argv[2])) { 98 eval('$pk = ' . file_get_contents($argv[2]) . ';'); 99 } 100 else { 101 $pk = xcache_dasm_file($argv[1]); 102 } 98 103 $op_array = $funcs = $classes = null; 99 104 if (isset($pk['op_array'])) {
Note: See TracChangeset
for help on using the changeset viewer.

