Zend Framework

Setting a key as a scalar and an array fails

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.1.5
  • Fix Version/s: 0.2.0
  • Component/s: Zend_Config
  • Labels:
    None

Description

ini file:

[dotting]
db = one
db.name = two

load into a $config and var_dump($config) gives:

object(Zend_Config_Ini)#1317 (4) {
  ["_allowModifications:protected"] => bool(false)
  ["_index:protected"] => int(0)
  ["_count:protected"] => int(1)
  ["_data:protected"] => array(1) {
    ["db"] => string(3) "tne"
  }
}

Related to this, _processLevelsInKey() is unnecessary and _processKey() can recurse to itself.

Activity

Hide
Rob Allen added a comment -

Fixed in subversion changeset 1187

Show
Rob Allen added a comment - Fixed in subversion changeset 1187

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: