Re: cvs: php-src(PHP_5) /pear/PEAR Registry.php

From: Date: Wed, 25 Jun 2003 21:29:11 +0000
Subject: Re: cvs: php-src(PHP_5) /pear/PEAR Registry.php
References: 1  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-11173@lists.php.net to get a copy of this message
On Wednesday, June 25, 2003 18:22, Pierre-Alain Joye wrote: > pajoye Wed Jun 25 12:22:30 2003 EDT > Modified files: (Branch: PHP_5) > /php-src/pear/PEAR Registry.php > Log: > - restore > Index: php-src/pear/PEAR/Registry.php > diff -u php-src/pear/PEAR/Registry.php:1.42.2.1 php-src/pear/PEAR/Registry.php:1.42.2.2 > --- php-src/pear/PEAR/Registry.php:1.42.2.1 Wed Jun 25 04:56:41 2003 > +++ php-src/pear/PEAR/Registry.php Wed Jun 25 12:22:30 2003 > @@ -18,7 +18,7 @@ > // | | > // +----------------------------------------------------------------------+ > // > -// $Id: Registry.php,v 1.42.2.1 2003/06/25 08:56:41 pajoye Exp $ > +// $Id: Registry.php,v 1.42.2.2 2003/06/25 16:22:30 pajoye Exp $ > /* > TODO: > @@ -167,23 +167,7 @@ > */ > function _packageFileName($package) > { > - if (is_file("{$this->statedir}/{$package}.reg")) { > - return "{$this->statedir}/{$package}.reg"; > - } > - /** > - * Iterate through the directory to find the matching > - * registry file, even if it has been provided in > - * another case (foobar vs. FooBar) > - */ > - $package = strtolower($package); > - if ($handle = opendir($this->statedir)) { > - while (false !== ($file = readdir($handle))) { > - if (strtolower($file) == $package . ".reg") { > - return "{$this->statedir}/{$file}"; > - } > - } > - closedir($handle); > - } > + return "{$this->statedir}/{$package}.reg"; > } > // }}} The final patch to this function ended so: function _packageFileName($package) { return $this->statedir . DIRECTORY_SEPARATOR . strtolower($package) . '.reg'; } -- Tomas V.V.Cox mailto:cox@idecnet.com

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