ZF-8150: If frontController resource not present in application.ini bootstrap initialize exists class with resource name

Issue Type: Bug Created: 2009-10-26T11:14:57.000+0000 Last Updated: 2010-08-21T10:09:14.000+0000 Status: Resolved Fix version(s): - 1.10.5 (26/May/10)

Reporter: Ivan Shumkov (shumkov) Assignee: Ramon Henrique Ornelas (ramon) Tags: - Zend_Application

Related issues: - ZF-8225



<pre class="highlight">
pluginpaths.Rediska_Zend_Application_Resource = "Rediska/Zend/Application/Resource"

resources.rediska.namespace = "Rediska_Test_" =
resources.rediska.servers.0.port = 6379

<pre class="highlight">
require_once 'Rediska.php'; //Other class with name 'Rediska'
$application = new Zend_Application('tests', REDISKA_TESTS_PATH . '/Test/Zend/Application/application.ini');
$rediska = $application->bootstrap()->getBootstrap()->getResource('rediska');

In Zend_Application_Bootstrap_BootstrapAbstract in line 357 class requred before ('Rediska') will be initialized!


Posted by Dolf Schimmel (Freeaqingme) (freak) on 2009-10-26T11:19:57.000+0000

What is the actual outcome, and what outcome were you expecting?

Posted by Ivan Shumkov (shumkov) on 2009-10-26T12:42:10.000+0000

Actual - bootstrap initialize as resource already included class with name 'Rediska' Expected - bootstrap include and initialize resource Rediska_Zend_Application_Resource_Rediska

I'me fix bug by adding frontcontroller resource to application.ini:

<pre class="highlight">
pluginpaths.Rediska_Zend_Application_Resource = "Rediska/Zend/Application/Resource"

resources.frontController.env = 'tests' ;Hack for fix Zend_Application bootstraping bug

resources.rediska.namespace = "Rediska_Test_" =
resources.rediska.servers.0.port = 6379

Posted by Ramon Henrique Ornelas (ramon) on 2010-08-21T10:09:13.000+0000

With the resolution of the issue ZF-7696 this issue too was fixed. Code reproduced:

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.