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


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


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)

This was fixed in a previous release at some point.