From 1bac2cbe661145a5f65f1fd37db54c1d90853fcc Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 20 Apr 2020 11:34:07 +0000 Subject: [PATCH] External Libraries: Backport a commit from getID3() trunk to fix a PHP 7.4+ notice. This addresses a "Trying to access array offset on value of type bool" notice in the `getid3_mp3::MPEGaudioHeaderValid()` method. Props schlessera. Fixes #49945. Built from https://develop.svn.wordpress.org/trunk@47602 git-svn-id: http://core.svn.wordpress.org/trunk@47377 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ID3/getid3.php | 2 +- wp-includes/ID3/module.audio.mp3.php | 2 +- wp-includes/version.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/ID3/getid3.php b/wp-includes/ID3/getid3.php index a6260f0689..cc238253d5 100644 --- a/wp-includes/ID3/getid3.php +++ b/wp-includes/ID3/getid3.php @@ -250,7 +250,7 @@ class getID3 */ protected $startup_warning = ''; - const VERSION = '1.9.19-201912131005'; + const VERSION = '1.9.19-201912211559'; const FREAD_BUFFER_SIZE = 32768; const ATTACHMENTS_NONE = false; diff --git a/wp-includes/ID3/module.audio.mp3.php b/wp-includes/ID3/module.audio.mp3.php index 192317467c..0b8a351169 100644 --- a/wp-includes/ID3/module.audio.mp3.php +++ b/wp-includes/ID3/module.audio.mp3.php @@ -1788,7 +1788,7 @@ class getid3_mp3 extends getid3_handler * @return bool */ public static function MPEGaudioHeaderValid($rawarray, $echoerrors=false, $allowBitrate15=false) { - if (($rawarray['synch'] & 0x0FFE) != 0x0FFE) { + if (!isset($rawarray['synch']) || ($rawarray['synch'] & 0x0FFE) != 0x0FFE) { return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 82089c476e..bbafacee46 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47601'; +$wp_version = '5.5-alpha-47602'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.