ZF-6634: include warning with same module and namespace name

Issue Type: Bug Created: 2009-05-13T06:45:04.000+0000 Last Updated: 2009-08-24T11:59:55.000+0000 Status: Resolved Fix version(s): - 1.9.2 (25/Aug/09)

Reporter: Joffrey (norky) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Application

  • Zend_Loader

Related issues: Attachments:


I have an autoloaded namespace "My_" (in my include dir APPLICATION_PATH/lib) I have a module named "My"

When my module resource is boostraped, I have an include warnings form Zend autolaoder :

Warning: include(My/Bootstrap.php) [function.include]: failed to open stream: No such file or directory in /usr/local/share/ZendFramework-1.8.1/library/Zend/Loader.php on line 83

What I think :

In Zend_Application_Resource_Modules, line 71 The "class_exists call" try to test the class My_Bootstrap : so the autoloader from the namespace "My" try to load lib/My/Bootstrap.php => no correct, it has to test modules/my/Bootstap.php


Posted by Joffrey (norky) on 2009-05-14T00:17:59.000+0000

My suggest :

in "Application/Resource/Modules.php" : line 71,

Replace "if (!class_exists($bootstrapClass)) {" By if (!class_exists($bootstrapClass, false)) {

why ? It hasn't to try autoload because it includes the file in 3 next line (72..74)

Posted by Matthew Weier O'Phinney (matthew) on 2009-08-24T11:59:52.000+0000

This was fixed in a previous release at some point.

Have you found an issue?

See the Overview section for more details.


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

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