Hi,

Just replying to my own thread with more info, here's my logging data:

[31-Jul-2013 08:07:42] delimeter: ''
[31-Jul-2013 08:07:42] key: 'live'
[31-Jul-2013 08:07:42] EMPTY DELIMETER
[31-Jul-2013 08:07:42] PHP Warning:  explode() [ function.explode
<function.explode>  ]: Empty delimiter in
/xxx/lib/vendor/Zend/Config/Ini.php on line 200

And here is the debugging I have in the Zend_Config_Ini:
Inside _loadIniFile($filename) function:

...
        $iniArray = array();
        $this->_sectionSeparator = ':';
        $i = 0;
        foreach ($loaded as $key => $data)
        {
               error_log('host: ' . $_SERVER['HTTP_HOST']);
               error_log("delimeter: '{$this->_sectionSeparator}'");
               error_log("key: '{$key}'");
                if($this->_sectionSeparator == '' ||
empty($this->_sectionSeparator)) {
                      $this->_sectionSeparator = ':';
                      error_log("EMPTY DELIMETER");
                }
            $pieces = explode($this->_sectionSeparator, $key);
            $thisSection = trim($pieces[0]);
            switch (count($pieces)) {
                case 1:
                    $iniArray[$thisSection] = $data;
                    break;

                case 2:
                    $extendedSection = trim($pieces[1]);
                    $iniArray[$thisSection] =
array_merge(array(';extends'=>$extendedSection), $data);
                    break;

                default:
                    /**
                     * @see Zend_Config_Exception
                     */
                    require_once 'Zend/Config/Exception.php';
                    throw new Zend_Config_Exception("Section '$thisSection'
may not extend multiple sections in $filename");
            }
...


I can't explain it? I am using quite an old version of ZF1: 1.9.6, I am
updating soon but I can't think this has anything to do with it?

Thanks A Lot!




--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Empty-Delimiter-Mystery-when-using-Zend-Config-Ini-tp4660503p4660648.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to