Skip to content

Commit

Permalink
Trying to access array offset on value of type int
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHeinrich committed Jan 8, 2021
1 parent f199994 commit ec1762d
Show file tree
Hide file tree
Showing 2 changed files with 2 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 @@ -257,7 +257,7 @@ class getID3
*/
protected $startup_warning = '';

const VERSION = '1.9.20-202012091120';
const VERSION = '1.9.20-202101081230';
const FREAD_BUFFER_SIZE = 32768;

const ATTACHMENTS_NONE = false;
Expand Down
1 change: 1 addition & 0 deletions getid3/write.php
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ public function FormatDataForID3v2($id3v2_majorversion) {
if (!$ID3v2_tag_data_converted && ($this->tag_encoding == 'UTF-8')) {
do {
// if UTF-8 string does not include any characters above chr(127) then it is identical to ISO-8859-1
$value = (string) $value; // prevent warnings/errors if $value is a non-string (e.g. integer,float)
for ($i = 0; $i < strlen($value); $i++) {
if (ord($value[$i]) > 127) {
break 2;
Expand Down

0 comments on commit ec1762d

Please sign in to comment.