Changeset 60800 for trunk/src/wp-includes/ID3/getid3.php
- Timestamp:
- 09/26/2025 09:08:52 PM (9 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/ID3/getid3.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ID3/getid3.php
r56975 r60800 426 426 427 427 // Check safe_mode off 428 if (preg_match('#(1|ON)#i', ini_get('safe_mode'))) { // phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.safe_modeDeprecatedRemoved428 if (preg_match('#(1|ON)#i', ini_get('safe_mode'))) { 429 429 $this->warning('WARNING: Safe mode is on, shorten support disabled, md5data/sha1data for ogg vorbis disabled, ogg vorbos/flac tag writing disabled.'); 430 430 } 431 431 432 // phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.mbstring_func_overloadDeprecated433 432 if (($mbstring_func_overload = (int) ini_get('mbstring.func_overload')) && ($mbstring_func_overload & 0x02)) { 434 433 // http://php.net/manual/en/mbstring.overload.php 435 434 // "mbstring.func_overload in php.ini is a positive value that represents a combination of bitmasks specifying the categories of functions to be overloaded. It should be set to 1 to overload the mail() function. 2 for string functions, 4 for regular expression functions" 436 435 // getID3 cannot run when string functions are overloaded. It doesn't matter if mail() or ereg* functions are overloaded since getID3 does not use those. 437 // phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.mbstring_func_overloadDeprecated438 436 $this->startup_error .= 'WARNING: php.ini contains "mbstring.func_overload = '.ini_get('mbstring.func_overload').'", getID3 cannot run with this setting (bitmask 2 (string functions) cannot be set). Recommended to disable entirely.'."\n"; 439 437 } … … 443 441 // Check for magic_quotes_runtime 444 442 if (function_exists('get_magic_quotes_runtime')) { 445 // phpcs:ignore PHPCompatibility.FunctionUse.RemovedFunctions.get_magic_quotes_runtimeDeprecated446 443 if (get_magic_quotes_runtime()) { // @phpstan-ignore-line 447 444 $this->startup_error .= 'magic_quotes_runtime must be disabled before running getID3(). Surround getid3 block by set_magic_quotes_runtime(0) and set_magic_quotes_runtime(1).'."\n"; … … 450 447 // Check for magic_quotes_gpc 451 448 if (function_exists('get_magic_quotes_gpc')) { 452 // phpcs:ignore PHPCompatibility.FunctionUse.RemovedFunctions.get_magic_quotes_gpcDeprecated453 449 if (get_magic_quotes_gpc()) { // @phpstan-ignore-line 454 450 $this->startup_error .= 'magic_quotes_gpc must be disabled before running getID3(). Surround getid3 block by set_magic_quotes_gpc(0) and set_magic_quotes_gpc(1).'."\n"; … … 1791 1787 // currently vorbiscomment only works on OggVorbis files. 1792 1788 1793 // phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.safe_modeDeprecatedRemoved1794 1789 if (preg_match('#(1|ON)#i', ini_get('safe_mode'))) { 1795 1790
Note: See TracChangeset
for help on using the changeset viewer.