ZF-10898: PATCH: Allow loading application.ini.dist (application.*.dist) similar to phpunit.xml.dist
PHPUnit allows the ability to load a phpunit.xml.dist file in place of the phpunit.xml file if the phpunit.xml file does not exist. http://phpunit.de/manual/current/…
In keeping with that convention, my applications ship with an application.xml.dist or application.ini.dist. Unfortunately, when Zend_Application#_loadConfig() is given a string of "application.ini.dist", the "dist" is the only part of the suffix evaluated...the .ini part is ignored. This causes an exception:
Zend_Application_Exception('Invalid configuration file provided; unknown config type');
I propose a patch to honor *.dist files and if accepted, I'd like to push it through.