Changeset 20311
- Timestamp:
- 03/29/2012 02:15:06 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-ftp.php
r12548 r20311 897 897 } 898 898 899 $mod_sockets=TRUE; 900 if (!extension_loaded('sockets')) { 901 $prefix = (PHP_SHLIB_SUFFIX == 'dll') ? 'php_' : ''; 902 if(!@dl($prefix . 'sockets.' . PHP_SHLIB_SUFFIX)) $mod_sockets=FALSE; 899 $mod_sockets = extension_loaded( 'sockets' ); 900 if ( ! $mod_sockets && function_exists( 'dl' ) && is_callable( 'dl' ) ) { 901 $prefix = ( PHP_SHLIB_SUFFIX == 'dll' ) ? 'php_' : ''; 902 @dl( $prefix . 'sockets.' . PHP_SHLIB_SUFFIX ); 903 $mod_sockets = extension_loaded( 'sockets' ); 903 904 } 904 905 905 require_once "class-ftp-" .($mod_sockets?"sockets":"pure").".php";906 require_once "class-ftp-" . ( $mod_sockets ? "sockets" : "pure" ) . ".php"; 906 907 ?>
Note: See TracChangeset
for help on using the changeset viewer.