Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-5230

Unsupressed errors in functions_compress.php

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 3.0.0
    • 3.0.RC3
    • Other
    • None
    • PHP Environment: 5.x
      Database: 5.x

      Around Line: 651 in includes/functions_compress.php

      $fp = fopen("{$phpbb_root_path}store/$filename$this->type", 'rb');
      while ($buffer = fread($fp, 1024))
      {
      	echo $buffer;
      }
      fclose($fp);

      FIX:

      $fp = @fopen("{$phpbb_root_path}store/$filename$this->type", 'rb');
      if ($fp)
      {
          while ($buffer = fread($fp, 1024))
          {
      	    echo $buffer;
          }
          fclose($fp);
      }

            DavidMJ DavidMJ
            jc0n jc0n
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: