Make WordPress Core


Ignore:
Timestamp:
06/03/2020 05:38:56 PM (4 years ago)
Author:
desrosj
Message:

General: Continuing to work towards a passing PHP Compatibility scan.

This is a final pass to fix PHP compatibiilty issues in the codebase with code changes or adding phpcs:ignore comments.

With this change, all PHP compatibility warnings and errors without specific tickets have been addressed (see #49810 and #41750).

Props desrosj, johnbillion, jrf.
See #49922.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-ftp.php

    r47198 r47902  
    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}
Note: See TracChangeset for help on using the changeset viewer.