|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #63796 Constant ID3_V2 does not exist for id3-0.2 package
Submitted: 2012-12-18 09:42 UTC Modified: 2015-07-26 18:14 UTC
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: reptilien dot 19831209be1 at gmail dot com Assigned:
Status: Suspended Package: id3 (PECL)
PHP Version: 5.3.19 OS:
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:
Bug Type:
From: reptilien dot 19831209be1 at gmail dot com
New email:
PHP Version: OS:


 [2012-12-18 09:42 UTC] reptilien dot 19831209be1 at gmail dot com
From manual page:

Pay attention to the package version between 1.0 and 2.0. More constants for 
version 2 of id3 tags are available.

Test script:
$version = id3_get_version( "path/to/example.mp3" );
if ($version & ID3_V2) {
    // something here
With the package id3-0.2 an error is returned as:
PHP Notice:  Use of undefined constant ID3_V2 - assumed 'ID3_V2'.

See constants defined with get_defined_constants() as:
You have constants ID3_V2_1, ID3_V2_2 , etc


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-07-26 18:14 UTC]
-Status: Open +Status: Suspended
 [2015-07-26 18:14 UTC]
The id3 extension is unmaintained (no release for more
than 10 years). I'm suspending this report until a new maintainer
is found.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 22 17:01:29 2024 UTC