<?php
class foo {
public function __isset($foo) {
return $foo[0] == 'b';
}
public function __get($foo) {
return $foo == 'bar';
}
}
$f = new foo;
var_dump(empty($f->a));
var_dump(empty($f->b));
var_dump(empty($f->bar));
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/dEeWd on line 4
Process exited with code 255.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/dEeWd on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/dEeWd on line 4
Process exited with code 255.