cvs: pear-core /PEAR/Downloader Package.php
| From: | Greg Beaver | Date: | Sun, 21 Aug 2005 21:39:19 +0000 |
| Subject: | cvs: pear-core /PEAR/Downloader Package.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-3686@lists.php.net to get a copy of this message | ||
cellog Sun Aug 21 17:39:19 2005 EDT
Modified files:
/pear-core/PEAR/Downloader Package.php
Log:
make sure _fromFile() does not attempt to process a
pre-processed package name
http://cvs.php.net/diff.php/pear-core/PEAR/Downloader/Package.php?r1=1.81&r2=1.82&ty=u
Index: pear-core/PEAR/Downloader/Package.php
diff -u pear-core/PEAR/Downloader/Package.php:1.81 pear-core/PEAR/Downloader/Package.php:1.82
--- pear-core/PEAR/Downloader/Package.php:1.81 Fri Aug 19 15:32:20 2005
+++ pear-core/PEAR/Downloader/Package.php Sun Aug 21 17:39:19 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: Package.php,v 1.81 2005/08/19 19:32:20 cellog Exp $
+ * @version CVS: $Id: Package.php,v 1.82 2005/08/21 21:39:19 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 1.4.0a1
*/
@@ -1265,12 +1265,12 @@
/**
* This will retrieve from a local file if possible, and parse out
* a group name as well. The original parameter will be modified to reflect this.
- * @param string
+ * @param string|array can be a parsed package name as well
* @access private
*/
function _fromFile(&$param)
{
- if (!@is_file($param)) {
+ if (is_string($param) && !@is_file($param)) {
$test = explode('#', $param);
$group = array_pop($test);
if (@is_file(implode('#', $test))) {