Make WordPress Core

Changeset 47602


Ignore:
Timestamp:
04/20/2020 11:32:37 AM (5 years ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk/src/wp-includes/ID3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ID3/getid3.php

    r47601 r47602  
    251251    protected $startup_warning = '';
    252252
    253     const VERSION           = '1.9.19-201912131005';
     253    const VERSION           = '1.9.19-201912211559';
    254254    const FREAD_BUFFER_SIZE = 32768;
    255255
  • trunk/src/wp-includes/ID3/module.audio.mp3.php

    r47601 r47602  
    17891789     */
    17901790    public static function MPEGaudioHeaderValid($rawarray, $echoerrors=false, $allowBitrate15=false) {
    1791         if (($rawarray['synch'] & 0x0FFE) != 0x0FFE) {
     1791        if (!isset($rawarray['synch']) || ($rawarray['synch'] & 0x0FFE) != 0x0FFE) {
    17921792            return false;
    17931793        }
Note: See TracChangeset for help on using the changeset viewer.