Skip to content

Commit 636f552

Browse files
committed
* MFH: Silence warning
1 parent a397508 commit 636f552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pear/PEAR/Registry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function PEAR_Registry($pear_install_dir = PEAR_INSTALL_DIR)
101101

102102
// XXX Compatibility code should be removed in the future
103103
// rename all registry files if any to lowercase
104-
if (!OS_WINDOWS && $handle = opendir($this->statedir)) {
104+
if (!OS_WINDOWS && $handle = @opendir($this->statedir)) {
105105
$dest = $this->statedir . DIRECTORY_SEPARATOR;
106106
while (false !== ($file = readdir($handle))) {
107107
if (preg_match('/^.*[A-Z].*\.reg$/', $file)) {

0 commit comments

Comments
 (0)