mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
[ticket/17383] Fix HELO/EHLO error in email messenger on PHP8
PHPBB-17383
This commit is contained in:
@@ -1428,7 +1428,7 @@ class smtp_class
|
|||||||
if (($addr = @gethostbyname($local_host)) !== $local_host)
|
if (($addr = @gethostbyname($local_host)) !== $local_host)
|
||||||
{
|
{
|
||||||
// Able to resolve IP back to name
|
// Able to resolve IP back to name
|
||||||
if (($name = @gethostbyaddr($addr)) !== $addr)
|
if (!empty($name = @gethostbyaddr($addr)) && $name !== $addr)
|
||||||
{
|
{
|
||||||
$local_host = $name;
|
$local_host = $name;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user