Переглянути джерело

ignore file_exists() notices on non existing files

Adar Porat 12 роки тому
батько
коміт
c1a0e0f8ef

+ 2 - 2
library/Zend/Filter/Compress/Bz2.php

@@ -151,11 +151,11 @@ class Zend_Filter_Compress_Bz2 extends Zend_Filter_Compress_CompressAbstract
     public function decompress($content)
     {
         $archive = $this->getArchive();
-        if (file_exists($content)) {
+        if (@file_exists($content)) {
             $archive = $content;
         }
 
-        if (file_exists($archive)) {
+        if (@file_exists($archive)) {
             $file = bzopen($archive, 'r');
             if (!$file) {
                 require_once 'Zend/Filter/Exception.php';

+ 2 - 2
library/Zend/Filter/Compress/Gz.php

@@ -182,11 +182,11 @@ class Zend_Filter_Compress_Gz extends Zend_Filter_Compress_CompressAbstract
     {
         $archive = $this->getArchive();
         $mode    = $this->getMode();
-        if (file_exists($content)) {
+        if (@file_exists($content)) {
             $archive = $content;
         }
 
-        if (file_exists($archive)) {
+        if (@file_exists($archive)) {
             $handler = fopen($archive, "rb");
             if (!$handler) {
                 require_once 'Zend/Filter/Exception.php';