Mantis - Quercus
Viewing Issue Advanced Details
4297 minor always 11-17-10 18:45 11-17-10 18:45
JackyChan  
 
normal  
new 4.0.13  
open  
none    
none  
0004297: ArrayObject can't access property with -> operator, like $arrayObject->property
ArrayObject as an object instance, can't access it's property with -> operator, for example, $arrayObject->property. Only support index access operator,like $arrayObject['property'].

I found this issue when use Zend_Config_Ini to get the configurations.

db.ini
--------------------
[db]
host = "localhost"
user = "root"
password = ""
dbname = "mydb"

$config = new Zend_Config_Ini('db.ini');
print_r($config->db);

no luck,but print_r($config['db']) is ok.

There are no notes attached to this issue.