Skip to content

Commit

Permalink
Compatibility fix for PHP 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
StudioMaX committed Feb 1, 2024
1 parent 23e4a2c commit 9ca35df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion getid3/module.audio-video.riff.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,8 @@ public function Analyze() {
// Keep only string as far as first null byte, discard rest of fixed-width data
// https://github.com/JamesHeinrich/getID3/issues/263
// https://github.com/JamesHeinrich/getID3/issues/430
$thisfile_riff_WAVE_bext_0[$bext_key] = explode("\x00", $thisfile_riff_WAVE_bext_0[$bext_key])[0];
$null_terminator_rows = explode("\x00", $thisfile_riff_WAVE_bext_0[$bext_key]);
$thisfile_riff_WAVE_bext_0[$bext_key] = $null_terminator_rows[0];
}

$thisfile_riff_WAVE_bext_0['origin_date'] = substr($thisfile_riff_WAVE_bext_0['data'], 320, 10);
Expand Down

0 comments on commit 9ca35df

Please sign in to comment.