php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57122 can not read ID3 v2
Submitted: 2006-07-02 10:16 UTC Modified: 2006-11-12 16:37 UTC
From: marc dot bennewitz at giata dot de Assigned: alexmerz (profile)
Status: Closed Package: PECL website (PECL)
PHP Version: 5.0.4 OS: win2k
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: marc dot bennewitz at giata dot de
New email:
PHP Version: OS:

 

 [2006-07-02 10:16 UTC] marc dot bennewitz at giata dot de
Description:
------------
If I edit a mp3 file and write only the id3v2 tags in this
(Winamp 5.23) i can not read the tags with MP3_Id

Test script:
---------------
$mp3 = new MP3_ID(true);
$mp3->read('name.mp3');

if ($mp3->getTag('id3v2')) {
	echo "2\n";
} elseif ($mp3->getTag('id3v11')) {
	echo "1.1\n";
} elseif ($mp3->getTag('id3v1')) {
	echo "1\n";
} else {
	echo "unknown\n";
}

if ($mp3->getTag('artists')) {
	echo 'Artist:'.$mp3->getTag('artists')."\n";
}

Expected result:
----------------
2
Artist:name

Actual result:
--------------
unknown
Artist:0

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-12 16:37 UTC] alexmerz@php.net
Use MP3_IDv2 instead.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Dec 02 04:01:24 2020 UTC