Add basic ID3v2 write support, add unit tests

git-svn-id: http://php-reader.googlecode.com/svn/trunk@64 51a70ab9-7547-0410-9469-37e369ee0574
This commit is contained in:
svollbehr
2008-04-01 10:38:12 +00:00
parent 1182f0e0ff
commit 458335dc9f
15 changed files with 950 additions and 475 deletions

View File

@@ -123,9 +123,9 @@ final class ID3v1
return;
$this->_reader = new Reader($filename);
if ($this->_reader->size < 128)
if ($this->_reader->getSize() < 128)
return;
$this->_reader->offset = -128;
$this->_reader->setOffset(-128);
if ($this->_reader->read(3) != "TAG") {
$this->_reader = false; // reset reader, see write
return;