File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed
Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,39 @@ class Bar extends Foo
6464}
6565```
6666
67- This means ` (parent::$GLOBALS)[GLOBAL_VAR_KEY][0x0](); ` instead of what we expected ` parent::($GLOBALS[GLOBAL_VAR_KEY][0x0])(); ` .
67+ This means ` (parent::$GLOBALS)[GLOBAL_VAR_KEY][0x0](); ` instead of what we expected ` parent::{$GLOBALS[GLOBAL_VAR_KEY][0x0]}(); ` .
68+
69+ ### Class Method Call
70+
71+ ``` php
72+ class Foo
73+ {
74+ public function bar()
75+ {
76+ echo 'bar';
77+ }
78+
79+ public function __construct()
80+ {
81+ $this->bar();
82+ }
83+ }
84+ ```
85+
86+ The constructor will be encoded like this
87+
88+ ``` php
89+ class Foo
90+ {
91+ public function __construct()
92+ {
93+ $v0 = & $GLOBALS[GLOBAL_VAR_KEY];
94+ $this->$v0[0x0]();
95+ }
96+ }
97+ ```
98+
99+ This means ` ($this->$v0)[0x0]() ` instead of what we expected ` $this->{$v0[0x0]}() ` .
68100
69101## License
70102
You can’t perform that action at this time.
0 commit comments