- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.19, 5.5.0 - 5.5.3
- Fatal error: Cannot re-assign $this in /in/GTJQ1 on line 7
Process exited with code 255.
<?php
class Hoge {
public function destroyThis() {
$this = 'HAHAHA';
var_dump($this);
}
public function afterCheck() {
var_dump($this);
}
}
$hoge = new Hoge;
$hoge->destroyThis();
$hoge->afterCheck();