ID: 44027
Updated by: [EMAIL PROTECTED]
Reported By: anil dot softx at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 5.2.5
New Comment:
Exceptions are only thrown by OO code in PHP.
Previous Comments:
------------------------------------------------------------------------
[2008-02-03 01:41:53] anil dot softx at gmail dot com
Description:
------------
Exception seems not working. Please see the example code below.
Reproduce code:
---------------
try{
non_existant_function();
}catch(Exception $e){
echo "Exception thrown:" . $e->getMessage();
}
Expected result:
----------------
Expected to throw exception in above code but the script dies with a
Fatal error: call no non existant function ...
Actual result:
--------------
Fatal Error: call to non existant function non_existant_function().
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44027&edit=1