- Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.19
- Parse error: syntax error, unexpected '&' in /in/sQKVd on line 23
Process exited with code 255.
<?php
class Hoge {
function test1() {
func1($this);
var_dump($this);
}
function test2() {
func2($this);
var_dump($this);
}
}
function func1($var) {
unset($var);
}
function func2(&$var) {
unset(&$var);
}
$hoge = new Hoge;
$hoge->test1();
var_dump($hoge);
$hoge->test2();
var_dump($hoge);