- Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.15
- Parse error: syntax error, unexpected '$obj' (T_VARIABLE) in /in/RMhWJ on line 5
Process exited with code 255.
<?php
function call_method($obj) {
toto
$obj->method();
}
try {
call_method(null); // oops!
} catch (Error $e) {
echo "Exception propre: {$e->getMessage()}\n";
}