cvs: php-src(PHP_4_3) /pear/PEAR Common.php
| From: | Greg Beaver | Date: | Fri, 30 Apr 2004 02:05:46 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /pear/PEAR Common.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-19007@lists.php.net to get a copy of this message | ||
cellog Thu Apr 29 22:05:46 2004 EDT
Modified files: (Branch: PHP_4_3)
/php-src/pear/PEAR Common.php
Log:
MFH fix 1186: notice in PEAR_Common undeclared $_packageName
http://cvs.php.net/diff.php/php-src/pear/PEAR/Common.php?r1=1.81.2.16&r2=1.81.2.17&ty=u
Index: php-src/pear/PEAR/Common.php
diff -u php-src/pear/PEAR/Common.php:1.81.2.16 php-src/pear/PEAR/Common.php:1.81.2.17
--- php-src/pear/PEAR/Common.php:1.81.2.16 Sun Jan 25 20:26:46 2004
+++ php-src/pear/PEAR/Common.php Thu Apr 29 22:05:46 2004
@@ -17,7 +17,7 @@
// | Tomas V.V.Cox <cox@idecnet.com> |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.81.2.16 2004/01/26 01:26:46 pajoye Exp $
+// $Id: Common.php,v 1.81.2.17 2004/04/30 02:05:46 cellog Exp $
require_once 'PEAR.php';
require_once 'Archive/Tar.php';
@@ -1235,7 +1235,10 @@
function buildProvidesArray($srcinfo)
{
$file = basename($srcinfo['source_file']);
- $pn = $this->_packageName;
+ $pn = '';
+ if (isset($this->_packageName)) {
+ $pn = $this->_packageName;
+ }
$pnl = strlen($pn);
foreach ($srcinfo['declared_classes'] as $class) {
$key = "class;$class";