Maybe it's  a bug about Zend_Config_Ini.

Please try to create a instance like this $config = new Zend_Config_Ini (
$iniFile, null, true );

if the $config is true, $allowModifications will be set true.

But it will create an error at line 134.

The code of line 134 is $dataArray = array_merge_recursive($dataArray,
$this->_processKey($config, $sectionName, $sectionData));

Beacuse the code of line 226 is $config[$key] = $value; Here we cannot use a
scalar value as an array.(Remeber? the value of $config is boolean true)

so,you can get an error message like:

Warning: Cannot use a scalar value as an array in
D:\MyProject\php\test\library\Zend\Config\Ini.php on line 226

Warning: array_merge_recursive() [function.array-merge-recursive]: Argument
#2 is not an array in D:\MyProject\php\test\library\Zend\Config\Ini.php on
line 134

If it's not a bug,please email to me and tell me why.

Thanks
-- 
View this message in context: 
http://www.nabble.com/maybe-it%27s-a-bug-about-Zend_Config_Ini-tp16830539p16830539.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to