cvs: pear-core /PEAR ChannelFile.php

From: Date: Sat, 30 Jul 2005 04:24:29 +0000
Subject: cvs: pear-core /PEAR ChannelFile.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-33463@lists.php.net to get a copy of this message
cellog Sat Jul 30 00:24:29 2005 EDT Modified files: /pear-core/PEAR ChannelFile.php Log: fix return by ref fatal error in php 5.1 http://cvs.php.net/diff.php/pear-core/PEAR/ChannelFile.php?r1=1.70&r2=1.71&ty=u Index: pear-core/PEAR/ChannelFile.php diff -u pear-core/PEAR/ChannelFile.php:1.70 pear-core/PEAR/ChannelFile.php:1.71 --- pear-core/PEAR/ChannelFile.php:1.70 Fri Jun 3 22:52:18 2005 +++ pear-core/PEAR/ChannelFile.php Sat Jul 30 00:24:27 2005 @@ -15,7 +15,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: ChannelFile.php,v 1.70 2005/06/04 02:52:18 cellog Exp $ + * @version CVS: $Id: ChannelFile.php,v 1.71 2005/07/30 04:24:27 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 1.4.0a1 */ @@ -314,12 +314,13 @@ * @static * @return PEAR_ChannelFile|false false if invalid */ - function fromArray($data, $compatibility = false, $stackClass = 'PEAR_ErrorStack') + function &fromArray($data, $compatibility = false, $stackClass = 'PEAR_ErrorStack') { $a = new PEAR_ChannelFile($compatibility, $stackClass); $a->_fromArray($data); if (!$a->validate()) { - return false; + $a = false; + return $a; } return $a; }

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