History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ZF-1461
Type: Coding Standards Violation Coding Standards Violation
Status: Resolved Resolved
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Rob Allen
Reporter: Sébastien Vanvelthem
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

Deprecated method Zend_Config::toArray() still in use

Created: 30/May/07 10:43 AM   Updated: 05/Jul/07 02:44 PM
Component/s: Zend_Config
Affects Version/s: 1.0.0 RC1, 0.9.3
Fix Version/s: 1.0.0 RC2

Time Tracking:
Not Specified


 Description  « Hide
In Zend_Config.php,

please update the code of method Zend_Config::asArray() to no use deprecated method toArray() anymore (line 158 ZFRC1).

Unable to find source-code formatter for language: php. Available languages are: javascript, sql, xhtml, actionscript, none, html, xml, java
public function toArray()
    {
        $array = array();
        foreach ($this->_data as $key => $value) {
            if (is_object($value)) {
                $array[$key] = $value->asArray();   <----- must be $array[$key] = $value->toArray();
            } else {
                $array[$key] = $value;
            }
        }
        return $array;
    }


 All   Comments   Work Log   Change History   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Rob Allen - 30/May/07 03:00 PM
Resolved in SVN 5062