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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
3 + 21 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 05:01:27 2024 UTC