Doc #63796 [Opn->Sus]: Constant ID3_V2 does not exist for id3-0.2 package
| From: | cmb@php.net | Date: | Sun, 26 Jul 2015 18:14:21 +0000 |
| Subject: | Doc #63796 [Opn->Sus]: Constant ID3_V2 does not exist for id3-0.2 package | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-12552@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63796&edit=1
ID: 63796
Updated by: cmb@php.net
Reported by: reptilien dot 19831209be1 at gmail dot com
Summary: Constant ID3_V2 does not exist for id3-0.2 package
-Status: Open
+Status: Suspended
Type: Documentation Problem
Package: id3
PHP Version: 5.3.19
Block user comment: N
Private report: N
New Comment:
The id3 extension is unmaintained (no release for more
than 10 years). I'm suspending this report until a new maintainer
is found.
Previous Comments:
------------------------------------------------------------------------
[2012-12-18 09:42:16] reptilien dot 19831209be1 at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.id3-get-version#refsect1-
function.id3-get-version-returnvalues
---
Pay attention to the package version between 1.0 and 2.0. More constants for
version 2 of id3 tags are available.
Test script:
---------------
<?php
$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:
<?php
$id3_constants=get_defined_constants(true);
print_r($id3_constants["id3"]);
?>
You have constants ID3_V2_1, ID3_V2_2 , etc
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63796&edit=1