Browse Source

Decompiler: (PHP_5_6) support for POW(**)

master
Xuefer 6 years ago
parent
commit
813986f735
  1. 1
      devel/sample.cpp.php
  2. 4
      lib/Decompiler.class.php

1
devel/sample.cpp.php

@ -154,6 +154,7 @@ abstract class ClassName
unset($array['index']->indexProp);
#endif
$array['index'] = $object;
$array['index'] .= $object;
$array['index']->indexProp = 1;
echo $array['index']->indexProp;
$GLOBALS['var'] = $object;

4
lib/Decompiler.class.php

@ -678,6 +678,8 @@ class Decompiler
XC_ASSIGN_SR => ">>=",
XC_CONCAT => ".",
XC_ASSIGN_CONCAT => ".=",
XC_POW => "**",
XC_ASSIGN_POW => "*=",
XC_IS_IDENTICAL => "===",
XC_IS_NOT_IDENTICAL => "!==",
XC_IS_EQUAL => "==",
@ -3197,6 +3199,7 @@ foreach (array(
'XC_ADD_INTERFACE' => -1,
'XC_ASSIGN_DIM' => -1,
'XC_ASSIGN_OBJ' => -1,
'XC_ASSIGN_POW' => -1,
'XC_CATCH' => -1,
'XC_CLONE' => -1,
'XC_DECLARE_CLASS' => -1,
@ -3227,6 +3230,7 @@ foreach (array(
'XC_OP_DATA' => -1,
'XC_POST_DEC_OBJ' => -1,
'XC_POST_INC_OBJ' => -1,
'XC_POW' => -1,
'XC_PRE_DEC_OBJ' => -1,
'XC_PRE_INC_OBJ' => -1,
'XC_QM_ASSIGN_VAR' => -1,

Loading…
Cancel
Save