cvs: pear /Config package.xml /Config/Config/Container PHPArray.php

From: Date: Fri, 20 Oct 2006 03:13:35 +0000
Subject: cvs: pear /Config package.xml /Config/Config/Container PHPArray.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-42664@lists.php.net to get a copy of this message
aashley Fri Oct 20 03:13:35 2006 UTC Modified files: /pear/Config package.xml /pear/Config/Config/Container PHPArray.php Log: Fixed bug #7097 http://cvs.php.net/viewvc.cgi/pear/Config/package.xml?r1=1.38&r2=1.39&diff_format=u Index: pear/Config/package.xml diff -u pear/Config/package.xml:1.38 pear/Config/package.xml:1.39 --- pear/Config/package.xml:1.38 Fri Aug 11 02:22:52 2006 +++ pear/Config/package.xml Fri Oct 20 03:13:35 2006 @@ -34,18 +34,14 @@ </maintainer> </maintainers> <release> - <version>1.10.7</version> + <version>1.10.8RC1</version> <date>2006-08-11</date> <license>PHP License</license> - <state>stable</state> + <state>beta</state> <notes> -Changelog: - * Fixed Bug #7544: Empty attributes in IniCommented are being discarded (Luis Correa d'Almeida) - * Fixed Bug #7652: wrong xml to phparray convert. Caused by counting position - of directives and sections seperately. While when converting to some containers - we want to count them together. - * Add tests to confirm behaviour of Bug #8357. Do not believe it is fixable without removing - features. + * Fixed Bug #7097: writeConfig incorrect when root has attributes + This fix has the potential to break other things as it is a big change to the + PHPArray backend. Please test. </notes> <deps> <dep type="pkg" rel="has" optional="yes">XML_Parser</dep> @@ -102,6 +98,21 @@ </release> <changelog> <release> + <version>1.10.7</version> + <date>2006-08-11</date> + <license>PHP License</license> + <state>stable</state> + <notes> +Changelog: + * Fixed Bug #7544: Empty attributes in IniCommented are being discarded (Luis Correa d'Almeida) + * Fixed Bug #7652: wrong xml to phparray convert. Caused by counting position + of directives and sections seperately. While when converting to some containers + we want to count them together. + * Add tests to confirm behaviour of Bug #8357. Do not believe it is fixable without removing + features. + </notes> + </release> + <release> <version>1.10.6</version> <date>2006-02-14</date> <license>PHP License</license> http://cvs.php.net/viewvc.cgi/pear/Config/Config/Container/PHPArray.php?r1=1.28&r2=1.29&diff_format=u Index: pear/Config/Config/Container/PHPArray.php diff -u pear/Config/Config/Container/PHPArray.php:1.28 pear/Config/Config/Container/PHPArray.php:1.29 --- pear/Config/Config/Container/PHPArray.php:1.28 Tue May 30 06:37:28 2006 +++ pear/Config/Config/Container/PHPArray.php Fri Oct 20 03:13:35 2006 @@ -15,7 +15,7 @@ // | Authors: Bertrand Mansion <bmansion@mamasam.com> | // +----------------------------------------------------------------------+ // -// $Id: PHPArray.php,v 1.28 2006/05/30 06:37:28 aashley Exp $ +// $Id: PHPArray.php,v 1.29 2006/10/20 03:13:35 aashley Exp $ /** * Config parser for common PHP configuration array @@ -211,21 +211,20 @@ { $string = ''; if (!$obj->isRoot()) { - if (!$obj->parent->isRoot()) { - $string = is_int($obj->name) ? "[".$obj->name."]" : "['".$obj->name."']"; - } else { - if (empty($this->options['name'])) { - $string .= '$'.$obj->name; - } else { - $string .= '$'.$this->options['name']."['".$obj->name."']"; - } - } + $string = is_int($obj->name) ? "[".$obj->name."]" : "['".$obj->name."']"; $string = $this->_getParentString($obj->parent).$string; $count = $obj->parent->countChildren(null, $obj->name); if ($count > 1) { $string .= '['.$obj->getItemPosition(false).']'; } } + else { + if (empty($this->options['name'])) { + $string .= '$'.$obj->name; + } else { + $string .= '$'.$this->options['name']; + } + } return $string; } // end func _getParentString

« previous php.pear.cvs (#42664) next »