Zend Framework

Constructor function wrong doc.

Details

  • Type: Docs:  Problem Docs: Problem
  • Status: Resolved Resolved
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 1.8.4
  • Fix Version/s: 1.9.0
  • Component/s: Zend_Config
  • Labels:
    None
  • Language:
    English

Description

In Zend_Config_Xml the __constructor's doc says:

/**
     * Loads the section $section from the config file (or string $xml for
     * access facilitated by nested object properties.
     *
     * Sections are defined in the XML as children of the root element.
     *
     * In order to extend another section, a section defines the "extends"
     * attribute having a value of the section name from which the extending
     * section inherits values.
     *
     * Note that the keys in $section will override any keys of the same
     * name in the sections that have been included via "extends".
     *
     * @param  string  $filename           File to process
     * @param  mixed   $section            Section to process
     * @param  boolean $allowModifications Wether modifiacations are allowed at runtime
     * @throws Zend_Config_Exception When filename is not set
     * @throws Zend_Config_Exception When section $sectionName cannot be found in $filename
     */

But the function declaration is:
public function __construct($filename, $section = null, $options = false)

Activity

Hide
Satoru Yoshida added a comment -

Solved in SVN r17266

Show
Satoru Yoshida added a comment - Solved in SVN r17266

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: