Не работает $foo = $bar->v->fn( );

Issue #2 invalid
Develops repo owner created an issue

Не работает $foo = $bar->v->fn( ); Вывод:

<?php
0   FETCH_OBJ_R 82  1:$bar  2:"v"   >$0 ;0  
1   INIT_METHOD_CALL    112 1:$0:$bar->v    2:"fn"  >U:24   ;0  
2   DO_FCALL_BY_NAME    61  1:U:0   2:U:0   >$2 ;0  
3   
Notice: Undefined offset: 2 in C:\xcache\Decompiler.class.php on line 646
ASSIGN  38  1:$foo  2:$2:   >$3 ;0  
4   NOP 0   1:1 2:U:0   >U:0    ;0  
==
array(7) {
  ["opcode"]=>
  int(112)
  ["result"]=>
  array(4) {
    ["op_type"]=>
    int(8)
    ["var"]=>
    int(24)
    ["opline_num"]=>
    int(24)
    ["EA.type"]=>
    int(0)
  }
  ["op1"]=>
  array(3) {
    ["op_type"]=>
    int(4)
    ["var"]=>
    int(0)
    ["EA.type"]=>
    int(0)
  }
  ["op2"]=>
  array(2) {
    ["op_type"]=>
    int(1)
    ["constant"]=>
    string(2) "fn"
  }
  ["extended_value"]=>
  int(0)
  ["lineno"]=>
  int(30)
  ["line"]=>
  int(1)
}
int(1)
string(7) "$bar->v"
object(Decompiler_Value)#2 (1) {
  ["value"]=>
  string(2) "fn"
}
NULL
$foo = $bar->v->fn();

?>

Comments (1)

  1. Log in to comment