Re: cvs: php-src /pear/PEAR Common.php

From: Date: Fri, 30 Apr 2004 17:57:18 +0000
Subject: Re: cvs: php-src /pear/PEAR Common.php
References: 1  Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-19039@lists.php.net to get a copy of this message
On Fri, Apr 30, 2004 at 02:05:45AM -0000, Greg Beaver wrote: > @@ -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"; Because you're initializing $pn to an empty string here, a !empty() test might be more appropriate. -- Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/)

« previous php.pear.cvs (#19039) next »