- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.30
- Fatal error: Cannot re-assign $this in /in/RJg4Q on line 7
Process exited with code 255.
<?php
class Foo
{
public static function qux()
{
$this = new stdClass();
return function () use($this) { return $this; }
}
}
var_dump(call_user_func(Foo::qux()));