aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/lukasreschke
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-05-25 11:15:22 +0000
committerMario <mario@mariovavti.com>2021-05-25 11:15:22 +0000
commit2486a9c914520188d751ac30cad91774302f0c01 (patch)
treedca185d5732e6b069445935cc4e084fea2a1c0ef /vendor/lukasreschke
parenta47a81db6f9c6f0f21e81e7085b9345a4c67dd58 (diff)
downloadvolse-hubzilla-2486a9c914520188d751ac30cad91774302f0c01.tar.gz
volse-hubzilla-2486a9c914520188d751ac30cad91774302f0c01.tar.bz2
volse-hubzilla-2486a9c914520188d751ac30cad91774302f0c01.zip
php8: fix un maintained id3 parser
Diffstat (limited to 'vendor/lukasreschke')
-rw-r--r--vendor/lukasreschke/id3parser/src/getID3/getid3_lib.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/lukasreschke/id3parser/src/getID3/getid3_lib.php b/vendor/lukasreschke/id3parser/src/getID3/getid3_lib.php
index b50ed30cc..08cb36e03 100644
--- a/vendor/lukasreschke/id3parser/src/getID3/getid3_lib.php
+++ b/vendor/lukasreschke/id3parser/src/getID3/getid3_lib.php
@@ -85,11 +85,11 @@ class getid3_lib
// http://www.scri.fsu.edu/~jac/MAD3401/Backgrnd/binary.html
if (strpos($binarypointnumber, '.') === false) {
$binarypointnumber = '0.'.$binarypointnumber;
- } elseif ($binarypointnumber{0} == '.') {
+ } elseif ($binarypointnumber[0] == '.') {
$binarypointnumber = '0'.$binarypointnumber;
}
$exponent = 0;
- while (($binarypointnumber{0} != '1') || (substr($binarypointnumber, 1, 1) != '.')) {
+ while (($binarypointnumber[0] != '1') || (substr($binarypointnumber, 1, 1) != '.')) {
if (substr($binarypointnumber, 1, 1) == '.') {
$exponent--;
$binarypointnumber = substr($binarypointnumber, 2, 1).'.'.substr($binarypointnumber, 3);
@@ -97,7 +97,7 @@ class getid3_lib
$pointpos = strpos($binarypointnumber, '.');
$exponent += ($pointpos - 1);
$binarypointnumber = str_replace('.', '', $binarypointnumber);
- $binarypointnumber = $binarypointnumber{0}.'.'.substr($binarypointnumber, 1);
+ $binarypointnumber = $binarypointnumber[0].'.'.substr($binarypointnumber, 1);
}
}
$binarypointnumber = str_pad(substr($binarypointnumber, 0, $maxbits + 2), $maxbits + 2, '0', STR_PAD_RIGHT);