ID: 44147
Updated by: [EMAIL PROTECTED]
Reported By: cool_lim_lp at yahoo dot com dot sg
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: irrelevant
PHP Version: 5.2.5
New Comment:
A notice in some editor is no reason to change the language.
Previous Comments:
------------------------------------------------------------------------
[2008-02-18 12:14:40] cool_lim_lp at yahoo dot com dot sg
i know it can be done
using:
try
{
... do something ...
}
catch (Exception $e)
{
echo 'error';
}
but the thing is: i don't need the $e variable and in the Zend Studio,
it keeps telling me that the $e variable is not used.
------------------------------------------------------------------------
[2008-02-18 12:12:00] cool_lim_lp at yahoo dot com dot sg
Description:
------------
Feature request: is it possible to introduce the following type of
'catch' clause that is commonly available in OOP langs:
try
{
... do something ...
}
catch /*Catch all exceptions. We don't need to know what is it.*/
{
echo 'Error';
}
one reminder is that do remember to destroy the exception object that
is thrown although it is not caught in a parameter.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44147&edit=1