Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.5.1
-
Fix Version/s: 1.6.0
-
Component/s: Zend_Config
-
Labels:None
Description
When there is a problem parsing the ini file passed to Zend_Config_Ini constructor, the PHP warning message is not caught and no exception is thrown. This is problematic because the developer has no way of knowing that a problem has happened - plus the E_WARNING message should not be displayed.
Use the following ini file to reproduce:
[default] foo = ("bar")
Then, try to load this file with Zend_Config_Ini
Expected result: An exception thrown
I cannot reproduce your use-cased bug with PHP 5.2.5 and ZF at r9372
However, there is a PHP warning if the file loaded cannot be found or is not readable
You can find more info in #
ZF-2207ZF-2207