Browse Source

improve isset/empty for object property

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

12
Decompiler.class.php

@ -1020,7 +1020,17 @@ class Decompiler
else {
$container = $this->getOpVal($op1, $EX);
$dim = $this->getOpVal($op2, $EX);
$rvalue = $container . "[$dim]";
if ($opc == XC_ISSET_ISEMPTY_PROP_OBJ) {
if (preg_match($this->rQuotedName, $dim)) {
$rvalue = $container . "->" . substr($dim, 1, -1);
}
else {
$rvalue = $container . "->{" . $dim . "}";
}
}
else {
$rvalue = $container . "[$dim]";
}
}
switch ((PHP_VERSION < 5 ? $op['op2']['var'] /* constant */ : $ext) & (ZEND_ISSET|ZEND_ISEMPTY)) {

Loading…
Cancel
Save