Changeset 762 for trunk/Decompiler.class.php
- Timestamp:
- 2011-04-17T14:00:32+02:00 (2 years ago)
- File:
-
- 1 edited
-
trunk/Decompiler.class.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Decompiler.class.php
r761 r762 634 634 if ($opcodes[$last]['opcode'] == XC_HANDLE_EXCEPTION) { 635 635 $this->usedOps[XC_HANDLE_EXCEPTION] = true; 636 unset($opcodes[$last]);636 $opcodes[$last]['opcode'] = XC_NOP; 637 637 --$last; 638 638 } … … 640 640 $op1 = $opcodes[$last]['op1']; 641 641 if ($op1['op_type'] == XC_IS_CONST && array_key_exists('constant', $op1) && $op1['constant'] === $defaultReturnValue) { 642 unset($opcodes[$last]);642 $opcodes[$last]['opcode'] = XC_NOP; 643 643 --$last; 644 644 } … … 913 913 continue; 914 914 } 915 // echo $i ; $this->dumpop($op, $EX); //var_dump($op);915 // echo $i, ' '; $this->dumpop($op, $EX); //var_dump($op); 916 916 917 917 $resvar = null; … … 1725 1725 $op1 = $op['op1']; 1726 1726 $op2 = $op['op2']; 1727 $d = array(' opname' => xcache_get_opcode($op['opcode']), 'opcode' => $op['opcode']);1728 1729 foreach (array('op1' => ' op1', 'op2' => 'op2', 'result' => 'res') as $k => $kk) {1727 $d = array('n' => xcache_get_opcode($op['opcode']), 'c' => $op['opcode']); 1728 1729 foreach (array('op1' => '1:', 'op2' => '2:', 'result' => '>') as $k => $kk) { 1730 1730 switch ($op[$k]['op_type']) { 1731 1731 case XC_IS_UNUSED: 1732 $d[$kk] = ' *UNUSED*' . $op[$k]['opline_num'];1732 $d[$kk] = 'U:' . $op[$k]['opline_num']; 1733 1733 break; 1734 1734 1735 1735 case XC_IS_VAR: 1736 1736 $d[$kk] = '$' . $op[$k]['var']; 1737 if ($k k != 'res') {1737 if ($k != 'result') { 1738 1738 $d[$kk] .= ':' . str($this->getOpVal($op[$k], $EX)); 1739 1739 } … … 1742 1742 case XC_IS_TMP_VAR: 1743 1743 $d[$kk] = '#' . $op[$k]['var']; 1744 if ($k k != 'res') {1744 if ($k != 'result') { 1745 1745 $d[$kk] .= ':' . str($this->getOpVal($op[$k], $EX)); 1746 1746 } … … 1752 1752 1753 1753 default: 1754 if ($k k == 'res') {1754 if ($k == 'result') { 1755 1755 var_dump($op); 1756 1756 exit; … … 1762 1762 } 1763 1763 } 1764 $d['ext'] = $op['extended_value']; 1765 1766 var_dump($d); 1764 $d[';'] = $op['extended_value']; 1765 1766 foreach ($d as $k => $v) { 1767 echo $k, str($v), "\t"; 1768 } 1769 echo PHP_EOL; 1767 1770 } 1768 1771 // }}}
Note: See TracChangeset
for help on using the changeset viewer.

