|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-07-26 18:13 UTC] cmb@php.net
-Status: Open
+Status: Suspended
[2015-07-26 18:13 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 17:00:01 2025 UTC |
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) }