php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56745 Bug in ID3_V1.x
Submitted: 2005-12-24 10:53 UTC Modified: 2015-07-26 18:13 UTC
From: dnfeitosa at gmail dot com Assigned:
Status: Suspended Package: id3 (PECL)
PHP Version: 5.0.4 OS: Windows 2003
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
23 + 27 = ?
Subscribe to this entry?

 
 [2005-12-24 10:53 UTC] dnfeitosa at gmail dot com
Description:
------------
In "Year" field of the 1.x tags, it's possible insert values with only 1 character with, eg. Winamp, but with id3_get_tag function the browser return a .php file to download instead a .html file to view.





Reproduce code:
---------------
MP3 File
Title: titulo_v1
Artist: artista_v1
Album: album_v1
Year: 2
Comment: versao1
Genre: A Cappella


<?php

header("Content-type: text/plain");

$tags = id3_get_tag('d:\\www\\MP3\\xxx.mp3', ID3_V1_0);
var_dump($tags);
?>

Expected result:
----------------
array(6) {
  ["title"]=>
  string(9) "titulo_v1"
  ["artist"]=>
  string(10) "artista_v1"
  ["album"]=>
  string(8) "album_v1"
  ["year"]=>
  string(1) "2"
  ["comment"]=>
  string(7) "versao1"
  ["genre"]=>
  int(123)
}


Actual result:
--------------
array(6) {
  ["title"]=>
  string(9) "titulo_v1"
  ["artist"]=>
  string(10) "artista_v1"
  ["album"]=>
  string(8) "album_v1"
  ["year"]=>
  string(4) "4^@^@^@"
  ["comment"]=>
  string(7) "versao1"
  ["genre"]=>
  int(123)
}


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-07-26 18:13 UTC] cmb@php.net
-Status: Open +Status: Suspended
 [2015-07-26 18:13 UTC] cmb@php.net
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: Thu Apr 18 22:01:28 2024 UTC