On Tue, Sep 23, 2014 at 9:41 AM, Sanford Whiteman <figureone...@gmail.com> wrote: > I don't think you tracked the behavior in the bug report. > > If checkdnsrr() is doing an MX query -- not including implicit MX, > only explicit MX -- it must fail when there is no MX record. It can't > return `true` when there is a CNAME (and no MX record for the > canonical hostname, only an A) but `false` when there is an A (and no > MX record). That isn't an MX query, nor is it the way smtp-senders > operate, now or 16 years ago. > > To quote the bug report, if somehost.example.com is a CNAME for > example.com, and example.com has an A record but no MX, > checkdnsrr('somehost.example.com') must not return different results > than checkdnsrr('example.com'). Either the function is trying to be > "smart" and emulate an smtp-sender (bad idea) and succeeds on both, or > it stays dumb and fails on both.
if somehost.example.com has the MX, it should return true with checkdnsrr('somehost.example.com'). If example has the MX set to somehost.example.com or similar, it should return true as well. Or am I missing your point? -- Pierre @pierrejoye | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php