Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.2

Bug #10705 Fails to study MP3 files with APIC frame (cover art)
Submitted: 2007-04-13 07:54 UTC
From: herbjohnson Assigned: doconnor
Status: Closed Package: MP3_Id (version 1.2.0)
PHP Version: 5.0.4 OS: any
Roadmaps: (Not assigned)    
Subscription  


 [2007-04-13 07:54 UTC] herbjohnson (Herb Johnson)
Description: ------------ Steps to reproduce: - standard installation & setup - read & study a mp3 file w/cover art (APIC frame / attached picture) - you may use Mp3tag (freeware, http://www.mp3tag.de/en/index.html) to create such a file The resulting information is incorrect, plus the script throws two errors (level: notice), as it presumably tries to read the included jpeg data like it was "regular" id3-stuff Test script: --------------- <?php include_once("MP3/Id/Id.php"); $mp3Info = new MP3_Id(); $mp3Info->read('testfile.mp3'); $mp3Info->study(); ?> Expected result: ---------------- [maybe obvious, but the form wants it, so here we go:] - no php errors - correct file information (most importantly mpeg_ver & layer as I mainly use the library for file validation purposes) in $mp3Info Actual result: -------------- - two php notices: A PHP Error was encountered Severity: Notice Message: Undefined offset: 0 Filename: Id/Id.php Line Number: 867 A PHP Error was encountered Severity: Notice Message: Undefined offset: 0 Filename: Id/Id.php Line Number: 922 - if you print_r() $mp3Info, you will notice the id3 information (esp. mpeg_ver & layer) is incorrect

Comments

 [2014-03-09 14:56 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Closed -Assigned To: +Assigned To: doconnor
Can't reproduce this, have added a test + sample mp3