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

Issue Type: Bug Created: 2008-03-07T09:53:38.000+0000 Last Updated: 2008-03-21T17:25:45.000+0000 Status: Resolved Fix version(s): - 1.5.1 (25/Mar/08)

Reporter: Martin Mayer (martin.mayer) Assignee: Darby Felton (darby) Tags: - Zend_Loader

Related issues: Attachments:


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


<pre class="highlight">

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."


Posted by Darby Felton (darby) on 2008-03-19T13:38:22.000+0000

Fixed in trunk with SVN r8905.

Posted by Darby Felton (darby) on 2008-03-19T14:16:36.000+0000

Fixed for next mini release with SVN r8906.

Posted by Wil Sinclair (wil) on 2008-03-21T17:25:45.000+0000

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.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.