WordPress.org

Make WordPress Core

Ticket #49922: 49922.3.diff

File 49922.3.diff, 1.9 KB (added by desrosj, 6 months ago)
  • src/wp-admin/includes/class-ftp.php

     
    899899$mod_sockets = extension_loaded( 'sockets' );
    900900if ( ! $mod_sockets && function_exists( 'dl' ) && is_callable( 'dl' ) ) {
    901901        $prefix = ( PHP_SHLIB_SUFFIX == 'dll' ) ? 'php_' : '';
    902         @dl( $prefix . 'sockets.' . PHP_SHLIB_SUFFIX );
     902        @dl( $prefix . 'sockets.' . PHP_SHLIB_SUFFIX ); // phpcs:ignore PHPCompatibility.FunctionUse.RemovedFunctions.dlDeprecated
    903903        $mod_sockets = extension_loaded( 'sockets' );
    904904}
    905905
  • src/wp-includes/functions.php

     
    66206620        static $overloaded = null;
    66216621
    66226622        if ( is_null( $overloaded ) ) {
    6623                 $overloaded = function_exists( 'mb_internal_encoding' ) && ( ini_get( 'mbstring.func_overload' ) & 2 );
     6623                $overloaded = function_exists( 'mb_internal_encoding' ) && ( ini_get( 'mbstring.func_overload' ) & 2 ); // phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.mbstring_func_overloadDeprecated
    66246624        }
    66256625
    66266626        if ( false === $overloaded ) {
  • src/wp-includes/pomo/streams.php

     
    1818                 * PHP5 constructor.
    1919                 */
    2020                function __construct() {
    21                         $this->is_overloaded = ( ( ini_get( 'mbstring.func_overload' ) & 2 ) != 0 ) && function_exists( 'mb_substr' );
     21                        $this->is_overloaded = ( ( ini_get( 'mbstring.func_overload' ) & 2 ) != 0 ) && function_exists( 'mb_substr' ); // phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.mbstring_func_overloadDeprecated
    2222                        $this->_pos          = 0;
    2323                }
    2424