#014087: ezcConfigurationManager::reset() does not reset allready loaded configuration options

Description:

I think the following code is explains the issue better than I could.

I attached a tarball, which contains a demonstration of this issue, just unpack it, change the path to ezc and run it.

I'm not quite sure whether this is a bug or whether I missunderstand the reset() method


<?php
require_once 'Base/src/ezc_bootstrap.php';

$cfg = ezcConfigurationManager::getInstance();
// configs/a contains an file storage.ini looking like this:
// [server]
// type=foo
$cfg->init( 'ezcConfigurationIniReader', 'configs/a' );
// output is string(3) "foo"
var_dump( $cfg->getSetting( 'storage', 'server', 'type' ) );
$cfg->reset();
$cfg = ezcConfigurationManager::getInstance();
// configs/b contains an file storage.ini looking like this:
// [server]
// type=bar
$cfg->init( 'ezcConfigurationIniReader', 'configs/b' );
// output should be string(3) "bar", but is string(3) "foo"
var_dump( $cfg->getSetting( 'storage', 'server', 'type' ) );

Environment:

Operating System: Mac OS X (and gentoo linux)
PHP Version: 5.2.4-2ubuntu5.1 (5.2.7)


- Attachments
bugreport.tar.bz2 (546 b)
[Download] [Permanent Link]
tarball containing an example demonstrating the issue

- Comments

Fixed in rev. 9573 for Configuration 1.3.2 (and eZ Components 2008.2).

#259371 by Derick Rethans on December 9th, 2008 [Permanent Link]

- History
Properties
Type Bug
Priority Medium
Component Components » Configuration
Affects Unknown
Fix Version 2008.2RC1 - eZ components 2008.2RC1
Reporter Christian Otto
Responsible Derick Rethans
Status 0 Closed
Resolution Fixed
Created December 9th, 2008
Updated December 9th, 2008
Resolved December 9th, 2008
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels