Doc #63796 [NEW]: Constant ID3_V2 does not exist for id3-0.2 package

From: Date: Tue, 18 Dec 2012 09:42:16 +0000
Subject: Doc #63796 [NEW]: Constant ID3_V2 does not exist for id3-0.2 package
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9294@lists.php.net to get a copy of this message
From: reptilien dot 19831209be1 at gmail dot com Operating system: PHP version: 5.3.19 Package: id3 Bug Type: Documentation Problem Bug description:Constant ID3_V2 does not exist for id3-0.2 package 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 bug report at https://bugs.php.net/bug.php?id=63796&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63796&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63796&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63796&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=63796&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=63796&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=63796&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=63796&r=needscript Try newer version: https://bugs.php.net/fix.php?id=63796&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=63796&r=support Expected behavior: https://bugs.php.net/fix.php?id=63796&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=63796&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=63796&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=63796&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63796&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=63796&r=dst IIS Stability: https://bugs.php.net/fix.php?id=63796&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=63796&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=63796&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=63796&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=63796&r=mysqlcfg

« previous php.doc.bugs (#9294) next »