Merge pull request #4 from davelima/file-not-existent-hotfix

Fixing 'File not present' exception throw
This commit is contained in:
Sergey 2017-05-28 20:50:57 +03:00 committed by GitHub
commit 5cced4513b

View File

@ -163,7 +163,7 @@ class Mp3Info {
if (is_null(self::$_sampleRateTable)) self::$_sampleRateTable = require dirname(__FILE__).'/../data/sampleRateTable.php';
if (!file_exists($filename))
throw new Exception("File ".$filename." is not present!");
throw new \Exception("File ".$filename." is not present!");
$mode = $parseTags ? self::META | self::TAGS : self::META;
$this->audioSize = $this->parseAudio($this->_fileName = $filename, $this->_fileSize = filesize($filename), $mode);
}