php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72683 getmxxr broken
Submitted: 2016-07-26 22:49 UTC Modified: -
From: deivid dot garcia dot garcia at gmail dot com Assigned:
Status: Closed Package: Mail related
PHP Version: 7.0.9 OS: Windows 10.1
Private report: No CVE-ID: None
 [2016-07-26 22:49 UTC] deivid dot garcia dot garcia at gmail dot com
Description:
------------
getmxxr() function on PHP7 and Windows broke. getmmxxr() returns TRUE on both cases, but on PHP the mxhosts array is EMPTY.

Test script:
---------------
$mxhosts = [];
echo getmxrr('gmail.com', $mxhosts) ? 'FOUND' : 'NOT FOUND';
echo json_encode($mxhosts);
exit();

Expected result:
----------------
FOUND["alt2.gmail-smtp-in.l.google.com","alt4.gmail-smtp-in.l.google.com","gmail-smtp-in.l.google.com","alt1.gmail-smtp-in.l.google.com","alt3.gmail-smtp-in.l.google.com"]

Actual result:
--------------
FOUND[]

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-07-27 18:50 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=c52322707e4224a5b3c16d53e9b59512d3a188e9
Log: Fixed bug #72683 getmxrr broken
 [2016-07-27 18:50 UTC] ab@php.net
-Status: Open +Status: Closed
 [2016-10-17 10:10 UTC] bwoebi@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=c52322707e4224a5b3c16d53e9b59512d3a188e9
Log: Fixed bug #72683 getmxrr broken
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC