ZF-2826: Misleading exception message when file does not exist


When trying to load class and file doesn't exist, Zend_Loader claims that file was loaded but class was not found in it.



Throws an exception: Zend_Exception: File "Not\Existing\Class.php" was loaded but class "Not_Existing_Class" was not found in the file in ...\lib\Zend\Loader.php on line 87

Expected messages should be "File not found" when file doesn't exist and "File was loaded but class not found" when file exists but class not. Or current message should be changed to "File $file does not exist or class $class not found in it."


Fixed in trunk with SVN r8905.

Fixed for next mini release with SVN r8906.

I'm assuming this fix is merged to the 1.5 release branch for release with 1.5.1. Please update JIRA if this is not the case.