cvs: pear-core /PEAR Registry.php

From: Date: Sun, 20 Feb 2005 21:44:59 +0000
Subject: cvs: pear-core /PEAR Registry.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-29572@lists.php.net to get a copy of this message
cellog Sun Feb 20 16:44:59 2005 EDT Modified files: /pear-core/PEAR Registry.php Log: make sure we don't inadvertantly return true from hasWriteAccess() if we don't http://cvs.php.net/diff.php/pear-core/PEAR/Registry.php?r1=1.122&r2=1.123&ty=u Index: pear-core/PEAR/Registry.php diff -u pear-core/PEAR/Registry.php:1.122 pear-core/PEAR/Registry.php:1.123 --- pear-core/PEAR/Registry.php:1.122 Sun Feb 20 16:42:53 2005 +++ pear-core/PEAR/Registry.php Sun Feb 20 16:44:58 2005 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Registry.php,v 1.122 2005/02/20 21:42:53 cellog Exp $ +// $Id: Registry.php,v 1.123 2005/02/20 21:44:58 cellog Exp $ /* TODO: @@ -154,9 +154,11 @@ $dir = $this->install_dir; while ($dir && $dir != '.') { $dir = dirname($dir); // cd .. - if (@file_exists($dir)) { + if ($dir != '.' && @file_exists($dir)) { if (@is_writeable($dir)) { return true; + } else { + return false; } } }

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