Browse Source

decompiler: refix isset/empty on variable

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@777 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 11 years ago
parent
commit
aca9c14116
  1. 6
      Decompiler.class.php

6
Decompiler.class.php

@ -1201,7 +1201,11 @@ class Decompiler
case XC_ISSET_ISEMPTY:
case XC_ISSET_ISEMPTY_VAR: // {{{
if ($opc == XC_ISSET_ISEMPTY_VAR) {
$rvalue = '$' . unquoteVariableName($this->getOpVal($op1, $EX));
$rvalue = $this->getOpVal($op1, $EX);
// for < PHP_5_3
if ($op1['op_type'] == XC_IS_CONST) {
$rvalue = '$' . unquoteVariableName($this->getOpVal($op1, $EX));
}
if ($op2['EA.type'] == ZEND_FETCH_STATIC_MEMBER) {
$class = $this->getOpVal($op2, $EX);
$rvalue = $class . '::' . $rvalue;

Loading…
Cancel
Save