Ticket #20187: 20187.2.patch
File 20187.2.patch, 596 bytes (added by , 13 years ago) |
---|
-
class-ftp.php
899 899 $mod_sockets=TRUE; 900 900 if (!extension_loaded('sockets')) { 901 901 $prefix = (PHP_SHLIB_SUFFIX == 'dll') ? 'php_' : ''; 902 if(!@dl($prefix . 'sockets.' . PHP_SHLIB_SUFFIX)) $mod_sockets=FALSE; 902 if (function_exists('dl') && is_callable('dl')) 903 @dl( $prefix . 'sockets.' . PHP_SHLIB_SUFFIX ); 904 $mod_sockets = function_exists( 'socket_set_option' ); 903 905 } 904 906 905 907 require_once "class-ftp-".($mod_sockets?"sockets":"pure").".php";