summaryrefslogtreecommitdiff
path: root/pear/PEAR
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2004-04-30 02:05:45 +0000
committerGreg Beaver <cellog@php.net>2004-04-30 02:05:45 +0000
commitaf03ecf9e193cfced74c3454f17dc1bf36f61ad0 (patch)
treea901c74a537ed27bcd32c8f90e92c17dd73e76b3 /pear/PEAR
parent65ecfc28cf28bbbffcf0e9898d9293021d3c04c2 (diff)
downloadphp-git-af03ecf9e193cfced74c3454f17dc1bf36f61ad0.tar.gz
fix 1186: notice in PEAR_Common undeclared $_packageName
Diffstat (limited to 'pear/PEAR')
-rw-r--r--pear/PEAR/Common.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php
index 3329fc6b6e..6e11a0d027 100644
--- a/pear/PEAR/Common.php
+++ b/pear/PEAR/Common.php
@@ -1235,7 +1235,10 @@ class PEAR_Common extends PEAR
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";