Config recursion error

From: Date: Sun, 06 Oct 2002 11:36:46 +0000
Subject: Config recursion error
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-9878@lists.php.net to get a copy of this message
I have just updated to config-1.0beta and am testing it with this require("Config.php"); $this->config =& new Config("iniFile"); $content =& $this->config->parseConfig("c:\application\config.ini"); print_r($content); There is some kind of error in the generation of the config object - this code outputs config_container_inifile Object (
    [type] => section
    [name] => root
    [content] =>
    [children] => Array
        (
            [0] => config_container_inifile Object
                (
                    [type] => directive
                    [name] => app_width
                    [content] => 600
                    [children] =>
                    [parent] => config_container_inifile Object
                        (
                            [type] => section
                            [name] => root
                            [content] =>
                            [children] => Array
*RECURSION*
                            [parent] =>
                            [options] => Array
                                (
                                )
                        )
                    [options] => Array
                        (
                        )
                )
            [1] => config_container_inifile Object
                (
                    [type] => directive
                    [name] => app_height
                    [content] => 400
                    [children] =>
                    [parent] => config_container_inifile Object
                        (
                            [type] => section
                            [name] => root
                            [content] =>
                            [children] => Array
                                (
                                    [0] => config_container_inifile Object
                                        (
                                            [type] => directive
                                            [name] => app_width
                                            [content] => 600
                                            [children] =>
                                            [parent] =>  *RECURSION*
                                            [options] => Array
                                                (
                                                )
                                        )
                                    [1] =>  *RECURSION*
                                    [2] => config_container_inifile Object
/........... and so on and so on.... the test ini file is just [] app_width = 600 app_height = 400 [modules] testModule = 1 testModule2 = 1

« previous php.pear.dev (#9878) next »