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
 [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

Add a Patch

Pull Requests

Pull requests:

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Sun Sep 27 20:01:23 2020 UTC