If there is errors or warnings in an object getid3_write_id3v2 for exemple, these errors are not copied into the "top" object getid3_writetags, so we do not know they occured !!
Example :
Code: Select all
$tagwriter = new getid3_writetags() ;
$tagwriter->filename = 'path/to/file.mp3';
$tagwriter->tagformats = [ 'id3v2.3' ] ;
$tagwriter->tag_data = array(
'title' => [ 'my title' ],
'url_artist' => [ 'not a @url !' ],
);
$ok = $tagwriter->WriteTags() ; /* uses getid3_write_id3v2 ! */
/* We don't avec access to the [i]getid3_write_id3v2[/i] object here ! No property for that in $tagwriter... */
var_dump($tagwriter->errors); /* nothing... */