a thrown exception will not be catched, if a there is a user defined exception class.
the following code:
<?php
Class MyException extends Exception {}
class A{
static function b() {
throw new Exception();
}
}
try {
A::b();
} catch (Exception $e) {
echo 'test';
}
?>
gives:
Fatal error: Uncaught exception 'Exception' in
exceptions.php:7 Stack trace: #0 exceptions.php(12): A::b() #1 {main}
thrown in exceptions.php on line 7
when the eaccelerator chache is on.
version:
eAccelerator 0.9.5 [shm:win32 sem:win32]
PHP 5.2.1 [ZE 2.2.0]
Using apache2handler on Windows NT 5.1 build 2600