]> granicus.if.org Git - php/commitdiff
* MFH: Silence warning
authorMartin Jansen <mj@php.net>
Sat, 28 Jun 2003 18:15:35 +0000 (18:15 +0000)
committerMartin Jansen <mj@php.net>
Sat, 28 Jun 2003 18:15:35 +0000 (18:15 +0000)
pear/PEAR/Registry.php

index 16a9b497d4c092945c184bb42c5862519c354e98..27a5f9649c04b357ee7d0b633893d8c6a8fe8810 100644 (file)
@@ -101,7 +101,7 @@ class PEAR_Registry extends PEAR
 
         // XXX Compatibility code should be removed in the future
         // rename all registry files if any to lowercase
-        if (!OS_WINDOWS && $handle = opendir($this->statedir)) {
+        if (!OS_WINDOWS && $handle = @opendir($this->statedir)) {
             $dest = $this->statedir . DIRECTORY_SEPARATOR;
             while (false !== ($file = readdir($handle))) {
                 if (preg_match('/^.*[A-Z].*\.reg$/', $file)) {