cvs: php-src(PHP_5) /pear/PEAR Registry.php
| From: | Pierre-Alain Joye | Date: | Wed, 25 Jun 2003 16:22:30 +0000 |
| Subject: | cvs: php-src(PHP_5) /pear/PEAR Registry.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-11168@lists.php.net to get a copy of this message | ||
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";
}
// }}}