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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: deivid dot garcia dot garcia at gmail dot com
New email:
PHP Version: OS:

 

 [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: Thu Nov 21 11:01:29 2024 UTC