cvs: pear-core /PEAR ChannelFile.php
| From: | Greg Beaver | Date: | Sun, 05 Mar 2006 21:11:02 +0000 |
| Subject: | cvs: pear-core /PEAR ChannelFile.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-4607@lists.php.net to get a copy of this message | ||
cellog Sun Mar 5 21:11:02 2006 UTC
Modified files:
/pear-core/PEAR ChannelFile.php
Log:
remove err suppression @
http://cvs.php.net/viewcvs.cgi/pear-core/PEAR/ChannelFile.php?r1=1.75&r2=1.76&diff_format=u
Index: pear-core/PEAR/ChannelFile.php
diff -u pear-core/PEAR/ChannelFile.php:1.75 pear-core/PEAR/ChannelFile.php:1.76
--- pear-core/PEAR/ChannelFile.php:1.75 Thu Mar 2 18:14:12 2006
+++ pear-core/PEAR/ChannelFile.php Sun Mar 5 21:11:02 2006
@@ -15,7 +15,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: ChannelFile.php,v 1.75 2006/03/02 18:14:12 cellog Exp $
+ * @version CVS: $Id: ChannelFile.php,v 1.76 2006/03/05 21:11:02 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 1.4.0a1
*/
@@ -391,8 +391,8 @@
*/
function fromXmlFile($descfile)
{
- if (!@is_file($descfile) || !is_readable($descfile) ||
- (!$fp = @fopen($descfile, 'r'))) {
+ if (!file_exists($descfile) || !is_file($descfile) || !is_readable($descfile) ||
+ (!$fp = fopen($descfile, 'r'))) {
require_once 'PEAR.php';
return PEAR::raiseError("Unable to open $descfile");
}
@@ -678,8 +678,11 @@
$this->_validateError(PEAR_CHANNELFILE_ERROR_NOVALIDATE_NAME);
}
if
(!isset($info['validatepackage']['attribs']['version'])) {
+ $content = isset($info['validatepackage']['_content']) ?
+ $info['validatepackage']['_content'] :
+ null;
$this->_validateError(PEAR_CHANNELFILE_ERROR_NOVALIDATE_VERSION,
- array('package' =>
@$info['validatepackage']['_content']));
+ array('package' => $content));
}
}
if
(isset($info['servers']['primary']['attribs']['port'])
&&