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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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 Dec 21 17:01:58 2024 UTC