cvs: pear-core /PEAR ChannelFile.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Mon, 09 Mar 2009 01:03:51 +0000 |
| Subject: | cvs: pear-core /PEAR ChannelFile.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-8256@lists.php.net to get a copy of this message | ||
dufuz Mon Mar 9 01:03:51 2009 UTC
Modified files:
/pear-core/PEAR ChannelFile.php
Log:
check if $info['servers']['primary']['attribs'] isset set before
checking if
$info['servers']['primary']['attribs']['anyothervalue']
isset to prevent a notice.
# According to the php devs the notice is now there because 5.3 was fixed from previous behavior
which was the wrong one
http://cvs.php.net/viewvc.cgi/pear-core/PEAR/ChannelFile.php?r1=1.83&r2=1.84&diff_format=u
Index: pear-core/PEAR/ChannelFile.php
diff -u pear-core/PEAR/ChannelFile.php:1.83 pear-core/PEAR/ChannelFile.php:1.84
--- pear-core/PEAR/ChannelFile.php:1.83 Tue Feb 24 23:38:22 2009
+++ pear-core/PEAR/ChannelFile.php Mon Mar 9 01:03:51 2009
@@ -9,7 +9,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2009 The Authors
* @license http://opensource.org/licenses/bsd-license.php
New BSD License
- * @version CVS: $Id: ChannelFile.php,v 1.83 2009/02/24 23:38:22 dufuz Exp $
+ * @version CVS: $Id: ChannelFile.php,v 1.84 2009/03/09 01:03:51 dufuz Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 1.4.0a1
*/
@@ -631,12 +631,14 @@
array('package' => $content));
}
}
- if
(isset($info['servers']['primary']['attribs']['port'])
&&
+
+ if (isset($info['servers']['primary']['attribs'],
$info['servers']['primary']['attribs']['port']) &&
!is_numeric($info['servers']['primary']['attribs']['port']))
{
$this->_validateError(PEAR_CHANNELFILE_ERROR_INVALID_PORT,
array('port' =>
$info['servers']['primary']['attribs']['port']));
}
- if
(isset($info['servers']['primary']['attribs']['ssl'])
&&
+
+ if (isset($info['servers']['primary']['attribs'],
$info['servers']['primary']['attribs']['ssl']) &&
$info['servers']['primary']['attribs']['ssl']
!= 'yes') {
$this->_validateError(PEAR_CHANNELFILE_ERROR_INVALID_SSL,
array('ssl' =>
$info['servers']['primary']['attribs']['ssl'],