Changeset 746 in svn
- Timestamp:
- 2011-04-14T05:21:26Z (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Decompiler.class.php
r745 r746 434 434 $op = $opcodes[$i]; 435 435 if (isset($op['php'])) { 436 $toticks = isset($op['ticks']) ? $op['ticks']: 0;436 $toticks = isset($op['ticks']) ? (int) str($op['ticks']) : 0; 437 437 if ($curticks != $toticks) { 438 if (!$toticks) { 438 $oldticks = $curticks; 439 $curticks = $toticks; 440 if (!$curticks) { 439 441 echo $origindent, "}\n"; 440 442 $indent = $origindent; 441 443 } 442 444 else { 443 if ($ curticks) {445 if ($oldticks) { 444 446 echo $origindent, "}\n"; 445 447 } 446 else if (!$ curticks) {448 else if (!$oldticks) { 447 449 $indent .= INDENT; 448 450 } 449 echo $origindent, "declare(ticks=$curticks) {\n"; 450 } 451 $curticks = $toticks; 451 echo $origindent, "declare (ticks=$curticks) {\n"; 452 } 452 453 } 453 454 echo $indent, str($op['php'], $indent), ";\n"; … … 719 720 if (!empty($op['jmpouts']) && isset($op['isjmp'])) { 720 721 if (isset($op['cond'])) { 721 echo "{$indent}check ( $op[cond]) {\n";722 echo "{$indent}check (" . str($op["cond"]) . ") {\n"; 722 723 echo INDENT; 723 724 } … … 1327 1328 $type = $op2['var']; // hack 1328 1329 $keyword = $this->includeTypes[$type]; 1329 $resvar = "$keyword(" . $this->getOpVal($op1, $EX) . ")";1330 $resvar = "$keyword(" . str($this->getOpVal($op1, $EX)) . ")"; 1330 1331 break; 1331 1332 // }}}
Note: See TracChangeset
for help on using the changeset viewer.