module.audio.xiph.php 2.0.0.b5 bug [fixed]

Locked
xave
User
Posts:1
Joined:Thu Jan 14, 2010 10:24 pm
Are you a spambot?:no
Contact:
module.audio.xiph.php 2.0.0.b5 bug [fixed]

Post by xave » Thu Jan 14, 2010 10:50 pm

In PHP 5.3 this script takes error message for some .flac files. (file for example).
Warning: image_type_to_mime_type() expects parameter 1 to be long, string given in C:\...\getid3\module.audio.xiph.php on line 454
This bug simply fixed by changing string #454 in module.audio.xiph.php

Code: Select all

$getid3->info['ogg']['comments_raw'][$i]['image_mime'] = image_type_to_mime_type($image_chunk_check[2]);
to

Code: Select all

$getid3->info['ogg']['comments_raw'][$i]['image_mime'] = image_type_to_mime_type(intval($image_chunk_check[2]));
Thanks.

Locked