php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79944 getmxrr always returns true on Alpine linux
Submitted: 2020-08-07 23:29 UTC Modified: 2020-08-10 14:55 UTC
From: ekin@php.net Assigned: nikic (profile)
Status: Closed Package: *Network Functions
PHP Version: 7.4.9 OS: Alpine 3.11
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ekin@php.net
New email:
PHP Version: OS:

 

 [2020-08-07 23:29 UTC] ekin@php.net
Description:
------------
getmxrr() always returns true on alpine linux.

Recently the following bug was fixed https://bugs.php.net/bug.php?id=78008 thanks to this PR: https://github.com/php/php-src/pull/5854 and it was merged into the 7.4.9 release.

Our A, CNAME and MX record tests were failing before we upgraded to 7.4.9 today and now A and CNAME tests do pass correctly (they use checkdnsrr()), however MX test doesn't.

Test script:
---------------
var_dump(getmxrr('meta.stackoverflow.com', $hosts));

Expected result:
----------------
bool(false)

Actual result:
--------------
bool(true)

Patches

Pull Requests

Pull requests:

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-08-08 14:06 UTC] ekin@php.net
Linked PR is irrelevant to this bug report and can be ignored.
 [2020-08-10 14:55 UTC] nikic@php.net
-Assigned To: +Assigned To: nikic
 [2020-08-10 18:43 UTC] nikic@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=a06eed0c0ec03bdbb0f97aede393b5c687041d88
Log: Fix bug #79944
 [2020-08-10 18:43 UTC] nikic@php.net
-Status: Assigned +Status: Closed
 [2020-08-20 01:42 UTC] apostnikov at gmail dot com
Confirm, it returns always TRUE even when hostname is wrong
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 13:01:29 2024 UTC