“Mediawiki的应用集锦”的版本间的差异
(创建页面,内容为“category:IS phpmail的应用函数fsockopen()位置:..\vendor\pear\net_socket\Net\Socket.php 约156行 $openfunc = $this->persistent ? 'fsockopen' : 'fsockop…”) |
|||
第1行: | 第1行: | ||
[[category:IS]] | [[category:IS]] | ||
− | phpmail的应用函数fsockopen()位置:..\vendor\pear\net_socket\Net\Socket.php | + | # phpmail的应用函数fsockopen()位置:..\vendor\pear\net_socket\Net\Socket.php 约156行: |
− | + | $openfunc = $this->persistent ? 'fsockopen' : 'fsockopen'; | |
− | + | $errno = 0; | |
− | $openfunc = $this->persistent ? 'fsockopen' : 'fsockopen'; | + | $errstr = ''; |
− | $errno = 0; | + | |
− | $errstr = ''; | + | $old_track_errors = @ini_set('track_errors', 1); |
− | + | ||
− | $old_track_errors = @ini_set('track_errors', 1); | + | if ($timeout <= 0) { |
− | + | $timeout = @ini_get('default_socket_timeout'); | |
− | if ($timeout <= 0) { | + | } |
− | $timeout = @ini_get('default_socket_timeout'); | + | |
− | } | + | if ($options && function_exists('stream_context_create')) { |
− | + | $context = stream_context_create($options); | |
− | if ($options && function_exists('stream_context_create')) { | + | |
− | $context = stream_context_create($options); | + | // Since PHP 5 fsockopen doesn't allow context specification |
− | + | if (function_exists('stream_socket_client')) { | |
− | // Since PHP 5 fsockopen doesn't allow context specification | + | $flags = STREAM_CLIENT_CONNECT; |
− | if (function_exists('stream_socket_client')) { | ||
− | $flags = STREAM_CLIENT_CONNECT; |
2021年5月8日 (六) 16:34的最新版本
- phpmail的应用函数fsockopen()位置:..\vendor\pear\net_socket\Net\Socket.php 约156行:
$openfunc = $this->persistent ? 'fsockopen' : 'fsockopen'; $errno = 0; $errstr = ; $old_track_errors = @ini_set('track_errors', 1); if ($timeout <= 0) { $timeout = @ini_get('default_socket_timeout'); } if ($options && function_exists('stream_context_create')) { $context = stream_context_create($options); // Since PHP 5 fsockopen doesn't allow context specification if (function_exists('stream_socket_client')) { $flags = STREAM_CLIENT_CONNECT;