Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77509 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59179 invoked from network); 23 Sep 2014 07:47:36 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2014 07:47:36 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.49 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.49 mail-qa0-f49.google.com Received: from [209.85.216.49] ([209.85.216.49:60668] helo=mail-qa0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 79/08-09206-79521245 for ; Tue, 23 Sep 2014 03:47:36 -0400 Received: by mail-qa0-f49.google.com with SMTP id n8so1265292qaq.36 for ; Tue, 23 Sep 2014 00:47:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=UYVBwDlhsaCdqc6lqgb+8esxzbqggAPpUw3MEyCUN3Y=; b=YhFsxgImB/9dL3ePE4b8T6VwCR7LVxPd6dXKIzPEHU34HPKeu4+OoIH/Dmj7imkhHV 5FZnhXBKK8gVFn+seT0fa5SORDqQggz7bYOM5gH0lzOim6X9WGPEqLywYxJLcSBSMKf0 MzmtjeTTG13i+ec3R510SgdYHkV90SJYeZrh8ZdXlLxtMrVW8rgu3ADbUKFumGa6KdBW 6rVmVszRPJ06OHAkh3HPpO5EgJPR5t+jZU1bqlv92bclmOjyiU/BMZqgV5AWIUXliSBa dEYHLOZ0ljXA6E6TR3VJ2kyotVt04frbh2BRAamU1Om9qkJgxQF5Q0IOoAwdlQ60Kxbj Y8yg== MIME-Version: 1.0 X-Received: by 10.224.129.1 with SMTP id m1mr29963568qas.0.1411458453324; Tue, 23 Sep 2014 00:47:33 -0700 (PDT) Received: by 10.140.22.51 with HTTP; Tue, 23 Sep 2014 00:47:33 -0700 (PDT) In-Reply-To: References: <54212042.7060600@php.net> Date: Tue, 23 Sep 2014 09:47:33 +0200 Message-ID: To: Sanford Whiteman Cc: Michael Wallner , Kris Craig , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Change checkdnsrr() $type argument behavior From: pierre.php@gmail.com (Pierre Joye) On Tue, Sep 23, 2014 at 9:41 AM, Sanford Whiteman 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