- Output for 5.3.0 - 5.3.13, 5.4.0 - 5.4.3
- Fatal error: Cannot re-assign $this in /in/nMH7c on line 10
Process exited with code 255.
<?php
class x
{
public function __construct()
{
$x =& $this;
$x = new stdClass;
var_dump($this);
$this = new stdClass;
}
}
var_dump(new x);