cvs: php4 /pear Config.php
| From: | Christian Stocker | Date: | Fri, 06 Jul 2001 10:24:12 +0000 |
| Subject: | cvs: php4 /pear Config.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-212@lists.php.net to get a copy of this message | ||
chregu Fri Jul 6 06:24:12 2001 EDT
Modified files:
/php4/pear Config.php
Log:
Patch by Tobias, so parseInput returns pearError
Index: php4/pear/Config.php
diff -u php4/pear/Config.php:1.3 php4/pear/Config.php:1.4
--- php4/pear/Config.php:1.3 Wed Jul 4 07:24:49 2001
+++ php4/pear/Config.php Fri Jul 6 06:24:12 2001
@@ -16,7 +16,7 @@
// | Christian Stocker <chregu@phant.ch> |
// +----------------------------------------------------------------------+
//
-// $Id: Config.php,v 1.3 2001/07/04 11:24:49 chregu Exp $
+// $Id: Config.php,v 1.4 2001/07/06 10:24:12 chregu Exp $
require_once( "PEAR.php") ;
@@ -36,7 +36,7 @@
*
* @author Alexander Merz <alexander.merz@t-online.de>
* @access public
-* @version $Id: Config.php,v 1.3 2001/07/04 11:24:49 chregu Exp $
+* @version $Id: Config.php,v 1.4 2001/07/06 10:24:12 chregu Exp $
* @package Config
*/
@@ -244,7 +244,9 @@
$totaldata = array();
foreach ($files as $datasrc)
{
- $this->container->parseInput($datasrc,$feature);
+ if (Pear::isError($error = $this->container->parseInput($datasrc,$feature)))
+ return $error;
+
$totaldata =
$this->array_merge_clobber($totaldata,$this->container->data);
unset ($this->data);
$this->datasrc = $datasrc;
@@ -253,7 +255,9 @@
}
else
{
- $this->container->parseInput($files,$feature);
+ if (Pear::isError($error = $this->container->parseInput($files,$feature)))
+ return $error;
+
$this->data = $this->container->data;
$this->datasrc = $files;
}