Skip to content

Commit

Permalink
APE 32-bit PHP warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHeinrich committed Mar 23, 2024
1 parent a94fb70 commit 449956e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion getid3/getid3.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ class getID3
*/
protected $startup_warning = '';

const VERSION = '1.9.23-202402191012';
const VERSION = '1.9.23-202403230855';
const FREAD_BUFFER_SIZE = 32768;

const ATTACHMENTS_NONE = false;
Expand Down
4 changes: 4 additions & 0 deletions getid3/module.tag.apetag.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ public function Analyze() {
$this->warning('Unable to check for APEtags because file is larger than '.round(PHP_INT_MAX / 1073741824).'GB');
return false;
}
if (PHP_INT_MAX == 2147483647) {
// https://github.com/JamesHeinrich/getID3/issues/439
$this->warning('APEtag flags may not be parsed correctly on 32-bit PHP');
}

$id3v1tagsize = 128;
$apetagheadersize = 32;
Expand Down

0 comments on commit 449956e

Please sign in to comment.