Browse Source

Decompiler: adds unset, XC_QM_ASSIGN_VAR

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1291 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.1
Xuefer 8 years ago
parent
commit
15e7931fb2
  1. 3
      lib/Decompiler.class.php
  2. 5
      mod_disassembler/sample.php

3
lib/Decompiler.class.php

@ -1931,7 +1931,8 @@ class Decompiler
}
break;
// }}}
case XC_QM_ASSIGN: // {{{
case XC_QM_ASSIGN:
case XC_QM_ASSIGN_VAR: // {{{
if (isset($curResVar) && is_a($curResVar, 'Decompiler_Binop')) {
$curResVar->op2 = $this->getOpVal($op1, $EX);
}

5
mod_disassembler/sample.php

@ -236,14 +236,19 @@ $object->prop = 1;
$this->prop = 1;
$a = isset($b);
$a = empty($b);
unset($b);
$a = isset($array['index']);
$a = empty($array['index']);
unset($array['index']);
$a = isset($object->prop);
$a = empty($object->prop);
unset($object->prop);
$a = isset($this->prop);
$a = empty($this->prop);
unset($this->prop);
$a = isset(ClassName::$prop);
$a = empty(ClassName::$prop);
unset(ClassName::$prop);
$a = (int) $b;
$a = (double) $b;
$a = (string) $b;

Loading…
Cancel
Save