Fixing 'File not present' exception throw
Current code is throwing a wapmorgan\Mp3Info\Exception, which not exists Bug fixed by throwing a \Exception instead
This commit is contained in:
@ -163,7 +163,7 @@ class Mp3Info {
|
|||||||
if (is_null(self::$_sampleRateTable)) self::$_sampleRateTable = require dirname(__FILE__).'/../data/sampleRateTable.php';
|
if (is_null(self::$_sampleRateTable)) self::$_sampleRateTable = require dirname(__FILE__).'/../data/sampleRateTable.php';
|
||||||
|
|
||||||
if (!file_exists($filename))
|
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;
|
$mode = $parseTags ? self::META | self::TAGS : self::META;
|
||||||
$this->audioSize = $this->parseAudio($this->_fileName = $filename, $this->_fileSize = filesize($filename), $mode);
|
$this->audioSize = $this->parseAudio($this->_fileName = $filename, $this->_fileSize = filesize($filename), $mode);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user