- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.19
- Fatal error: Cannot re-assign $this in /in/WkCYL on line 6
Process exited with code 255.
<?php
class Foo {
public function bar() {
$this = 'poop';
var_dump($this);
$name = 'this';
$$name = 'herpderp';
var_dump($$name);
var_dump($this);
}
}
$d = new Foo;
$d->bar();