ZF-7955: Zend_Application_Bootstrap_BootstrapAbstract - resource Methods arent marked as "run"
Description
Zend_Application_Bootstrap_BootstrapAbstract, Line 664: it should be
$this->_markRun($resourceName);
and not
$this->_markRun($resource);
So the resource methods arent marked as "run" correctly and are called several times if dependencies are set in other resource methods.
Comments
Posted by Dolf Schimmel (Freeaqingme) (freak) on 2009-09-27T09:17:14.000+0000
Could you please provide a unit test or other code that proves this issue? With both $resource and $resourceName all unittests pass.
Posted by Mario Knippfeld (gutzuwissen) on 2009-09-28T02:55:22.000+0000
Hi,
its a little bit tricky :)
Just use the following Bootstrap class and you will see that the FunctionTest will be called 3 times:
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {
}
====== if i would use the bootstrap method with lower case (e.g. $this->bootstrap('functiontest'); ) all is working fine. the problem is that in line 664: $resource is used and not $resourceName, which is filtered by a strtolower.
Posted by julien PAULI (doctorrock83) on 2009-10-01T10:31:17.000+0000
Confirmed for me. Fix is located at r18454