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

From: Date: Wed, 25 Jun 2003 15:06:51 +0000
Subject: cvs: php-src(PHP_4) /pear/PEAR Registry.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-11167@lists.php.net to get a copy of this message
mj Wed Jun 25 11:06:51 2003 EDT Modified files: (Branch: PHP_4) /php-src/pear/PEAR Registry.php Log: * Make the installer work with PHP_4 also. Index: php-src/pear/PEAR/Registry.php diff -u php-src/pear/PEAR/Registry.php:1.35.2.6.2.1 php-src/pear/PEAR/Registry.php:1.35.2.6.2.2 --- php-src/pear/PEAR/Registry.php:1.35.2.6.2.1 Mon Jun 23 21:59:18 2003 +++ php-src/pear/PEAR/Registry.php Wed Jun 25 11:06:51 2003 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Registry.php,v 1.35.2.6.2.1 2003/06/24 01:59:18 sas Exp $ +// $Id: Registry.php,v 1.35.2.6.2.2 2003/06/25 15:06:51 mj Exp $ /* TODO: @@ -155,23 +155,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"; } // }}}

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