testABCbool(true)
object(TestClass)#1 (0) {
}
Fatal error: Uncaught Error: Using $this when not in object context in /in/0RroH:11
Stack trace:
#0 /in/0RroH(15): {closure}()
#1 {main}
thrown in /in/0RroH on line 11
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
testABCbool(true)
object(TestClass)#1 (0) {
}
Fatal error: Uncaught Error: Using $this when not in object context in /in/0RroH:11
Stack trace:
#0 /in/0RroH(15): {closure}()
#1 {main}
thrown in /in/0RroH on line 11
Process exited with code 255.
Output for 5.6.8 - 5.6.28, 7.0.0 - 7.0.20
testABCbool(true)
object(TestClass)#1 (0) {
}
Notice: Undefined variable: this in /in/0RroH on line 11
NULL
NULL
$payload = function () {
$test = unserialize('b:1;');
$xyz = unserialize('O:9:"TestClass":0:{}');
$abc = unserialize('s:7:"testABC";');
$this = unserialize('N;');
echo $abc;
var_dump($test, $xyz);
var_dump($this);
};
Output for 5.5.24 - 5.5.35
Parse error: syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in /in/0RroH on line 18
Process exited with code 255.