List Info

Thread: maybe it's a bug about Zend_Config_Ini




maybe it's a bug about Zend_Config_Ini
user name
2008-04-22 22:18:28
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:MyProjectphptestlibraryZendConfigIni.php on line
226

Warning: array_merge_recursive()
[function.array-merge-recursive]: Argument
#2 is not an array in
D:MyProjectphptestlibraryZendConfigIni.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/may
be-it%27s-a-bug-about-Zend_Config_Ini-tp16830539p16830539.ht
ml
Sent from the Zend Framework mailing list archive at
Nabble.com.


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )