- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.25
- Fatal error: Cannot re-assign $this in /in/tfY3l on line 6
Process exited with code 255.
<?php
class Foo{
public $a;
public function __construct(
$this->a = function(){echo 'hi';};
);
}
$foo = new Foo();
$newFoo = unserialize(serialize($foo));
$newFoo->a();