Make WordPress Core


Ignore:
Timestamp:
10/04/2022 02:06:29 AM (19 months ago)
Author:
desrosj
Message:

External Libraries: Update getID3 to version 1.9.22.

This updates the getID3 library from version 1.9.21 to 1.9.22, which contains a number of bug fixes and improvements to PHP 8.1 support.

A full list of changes can be found on GitHub: https://github.com/JamesHeinrich/getID3/compare/v1.9.21...v1.9.22.

Props jrf, desrosj.
Fixes #56692.

File:
1 edited

Legend:

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

    r52254 r54376  
    1212/////////////////////////////////////////////////////////////////
    1313
     14if(!defined('GETID3_LIBXML_OPTIONS') && defined('LIBXML_VERSION')) {
     15    if(LIBXML_VERSION >= 20621) {
     16        define('GETID3_LIBXML_OPTIONS', LIBXML_NOENT | LIBXML_NONET | LIBXML_NOWARNING | LIBXML_COMPACT);
     17    } else {
     18        define('GETID3_LIBXML_OPTIONS', LIBXML_NOENT | LIBXML_NONET | LIBXML_NOWARNING);
     19    }
     20}
    1421
    1522class getid3_lib
     
    304311        } elseif (($exponent == 0) && ($fraction == 0)) {
    305312            if ($signbit == '1') {
    306                 $floatvalue = -0;
     313                $floatvalue = -0.0;
    307314            } else {
    308                 $floatvalue = 0;
    309             }
    310             $floatvalue = ($signbit ? 0 : -0);
     315                $floatvalue = 0.0;
     316            }
    311317        } elseif (($exponent == 0) && ($fraction != 0)) {
    312318            // These are 'unnormalized' values
     
    733739            // disabled by default, but is still needed when LIBXML_NOENT is used.
    734740            $loader = @libxml_disable_entity_loader(true);
    735             $XMLobject = simplexml_load_string($XMLstring, 'SimpleXMLElement', LIBXML_NOENT);
     741            $XMLobject = simplexml_load_string($XMLstring, 'SimpleXMLElement', GETID3_LIBXML_OPTIONS);
    736742            $return = self::SimpleXMLelement2array($XMLobject);
    737743            @libxml_disable_entity_loader($loader);
Note: See TracChangeset for help on using the changeset viewer.