cvs: pear-core /PEAR/Installer Role.php

From: Date: Mon, 27 Mar 2006 05:15:36 +0000
Subject: cvs: pear-core /PEAR/Installer Role.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-4678@lists.php.net to get a copy of this message
cellog Mon Mar 27 05:15:36 2006 UTC Modified files: /pear-core/PEAR/Installer Role.php Log: remove as many @ from PEAR/Installer/Role.php as possible http://cvs.php.net/viewcvs.cgi/pear-core/PEAR/Installer/Role.php?r1=1.13&r2=1.14&diff_format=u Index: pear-core/PEAR/Installer/Role.php diff -u pear-core/PEAR/Installer/Role.php:1.13 pear-core/PEAR/Installer/Role.php:1.14 --- pear-core/PEAR/Installer/Role.php:1.13 Fri Jan 6 04:47:36 2006 +++ pear-core/PEAR/Installer/Role.php Mon Mar 27 05:15:36 2006 @@ -15,7 +15,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2006 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Role.php,v 1.13 2006/01/06 04:47:36 cellog Exp $ + * @version CVS: $Id: Role.php,v 1.14 2006/03/27 05:15:36 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 1.4.0a1 */ @@ -216,6 +216,9 @@ if ($dir === null) { $dir = dirname(__FILE__) . '/Role'; } + if (!file_exists($dir) || !is_dir($dir)) { + return PEAR::raiseError("registerRoles: opendir($dir) failed"); + } $dp = @opendir($dir); if (empty($dp)) { return PEAR::raiseError("registerRoles: opendir($dir) failed"); @@ -236,7 +239,7 @@ $GLOBALS['_PEAR_INSTALLER_ROLES'][$class] = $data; } } - @closedir($dp); + closedir($dp); ksort($GLOBALS['_PEAR_INSTALLER_ROLES']); PEAR_Installer_Role::getBaseinstallRoles(true); PEAR_Installer_Role::getInstallableRoles(true);

« previous php.pear.core (#4678) next »