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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
24 + 42 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 14:01:29 2024 UTC