Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.11.4
-
Fix Version/s: 1.11.5, Next Major Release
-
Component/s: Zend_Application
-
Labels:None
-
Tags:
Description
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://www.phpunit.de/manual/current/en/textui.html
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.
Attachments
Issue Links
| This issue is related to: | ||||
| ZF-11317 | Load application.*.dist automatically when specifying application.* |
|
|
|
For the record, I'm against this "functionality". The reason for this is that phpunit is shipped with a basic configuration file to run a vanilla setup. Since with ZF it's mandatory to write your own config file, there's no reason why you wouldn't call it application.ini (or whatever) right-away yourself.