1
0
Fork 0

decompiler: refix isset/empty on variable

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@777 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 2011-04-20 15:39:30 +00:00
parent 91fee633aa
commit aca9c14116
1 changed files with 5 additions and 1 deletions

View File

@ -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;