(Urgent!!)Is it any configuration for php5 excpetion handling
The following is the program. If the exception is caught, message of "error is occured" should be shown on the browser too. Right?? but no that message, what's going wrong. I can ensure that it is php5 coz phpinfo.php states it is "php version 5.1.6". Please tell me why it happened and how to solve it. Thank you very much!!!
[code]
<?php
try
{
echo "abcde<br>";
$fish->move('walk');
}
catch (Exception $e) {
echo "error is occured<br>";
echo 'Caught exception: ', $e->getMessage(), "\n";
}
?>
[The display in Browser]
abcde
Fatal error: Call to a member function move() on a non-object in C:\FYP\beweb\AppServ\www\brian\memoryStick\program \testException.php on line 6
|