I feel a bit bad to be back again in such a short period of time, but I believe that a closer integration of the Exception class and exception handling would be fitting for such an excellent editor for PHP 5 code. PHPEd v4 recognizes by default some PHP 5 classes such as mysqli but does not have Code Completion information for the Exception class. A workaround that I have been using is creating a PHP file that is never included but defines the Exception class as per
http://us3.php.net/manual/en/language.exceptions.php. However I think it would be nice if the Code Completion data was built into PHPEd. Another little point is that in try catch blocks, PHPEd does not recognize the caught Exception object as a variable when it displays its Code Completion menu. This also applies to extended Exception objects (i.e.
MyException extends Exception). For example:
try
{
//something that might throw an Exception
}
catch(Exception $eObj)
{
$eObj->getCode();
/*Just typing $e will not show $eObj and I am using a 1 char min limit for Code Completion popups
Since Code Completion engine doesn't recognize $eObj, all Exception class methods don't show up (even with my workaround)
*/
} |
Of course this is not a critical error but I think that this small modification will make PHPEd a better and more efficient IDE for certain projects that are Exception heavy.
David