mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/16787] Properly check if fsockopen() is enabled - PHP 8
PHPBB3-16787
This commit is contained in:
parent
e2cfc01964
commit
c5ec036b84
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ class file_downloader
|
||||||
$this->error_string = '';
|
$this->error_string = '';
|
||||||
|
|
||||||
if (function_exists('fsockopen') &&
|
if (function_exists('fsockopen') &&
|
||||||
$socket = fsockopen(($port == 443 ? 'ssl://' : '') . $host, $port, $this->error_number, $this->error_string, $timeout)
|
$socket = @fsockopen(($port == 443 ? 'ssl://' : '') . $host, $port, $this->error_number, $this->error_string, $timeout)
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
@fputs($socket, "GET $directory/$filename HTTP/1.0\r\n");
|
@fputs($socket, "GET $directory/$filename HTTP/1.0\r\n");
|
||||||
|
|
Loading…
Add table
Reference in a new issue