#44148 [Opn->Bgs]: Catch clause does not check for class existence
| From: | johannes@php.net | Date: | Mon, 18 Feb 2008 22:06:41 +0000 |
| Subject: | #44148 [Opn->Bgs]: Catch clause does not check for class existence | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-122435@lists.php.net to get a copy of this message | ||
ID: 44148
Updated by: johannes@php.net
Reported By: cool_lim_lp at yahoo dot com dot sg
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: irrelevant
PHP Version: 5.2.5
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
That's a performance consideration, we don't have to do a class lookup
nd don't need to trigger __autoload in that case.
Previous Comments:
------------------------------------------------------------------------
[2008-02-18 12:19:40] cool_lim_lp at yahoo dot com dot sg
Description:
------------
i don't know whether it is a bug or not.
Look at the sample code given.
Reproduce code:
---------------
try
{
throw new Exception('test');
}
catch (NonExistent $e)
{
// the above class is non-existent but PHP doesn't give a warning or
error
}
catch (Exception $e)
{
// exception caught here
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44148&edit=1