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
 [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

Pull Requests

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: Sat Dec 21 12:01:31 2024 UTC