Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77507 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56188 invoked from network); 23 Sep 2014 07:41:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2014 07:41:09 -0000 Authentication-Results: pb1.pair.com header.from=figureonecpr@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=figureonecpr@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.43 as permitted sender) X-PHP-List-Original-Sender: figureonecpr@gmail.com X-Host-Fingerprint: 74.125.82.43 mail-wg0-f43.google.com Received: from [74.125.82.43] ([74.125.82.43:57690] helo=mail-wg0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BD/57-09206-41421245 for ; Tue, 23 Sep 2014 03:41:08 -0400 Received: by mail-wg0-f43.google.com with SMTP id y10so4261662wgg.14 for ; Tue, 23 Sep 2014 00:41:05 -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=TUwet9wu4hjCCkXTqVCzfjPwyD1RFSFGDDXx12dlhHk=; b=yWzubtNTQnpVVI/KJyGeEkK0cjWc55Ld8QsX6OonS2Hg+UFy4cBgIrNtLlk6WeI2+t 4A9u3UlRx0UH/ApM8RYQVQXNSS3NC2KfiPsTLIfiks8EB0zMkf2T4SJU0s//IMr8LxnS oaDQh9qZrT2dg0rVkJ5b13LNSONNU4Tx39cbxloIhvRdR4lKG97qr0tG6Qo1QOm1tl0e 40hTIcVQVB1Iz/OtqLkDKqZ2JztzfebWP2dgziNvg/caBiEvvNPOjLeV8pHjmz/n83wV OTMk+0Fgn2eZzM3WA3ROgIVg8K1e26YWDuFb/CZeOcKRJ/KMRwyY+nX5VfkUQzqvhEW7 hVew== MIME-Version: 1.0 X-Received: by 10.194.121.232 with SMTP id ln8mr5692166wjb.65.1411458065084; Tue, 23 Sep 2014 00:41:05 -0700 (PDT) Received: by 10.216.194.132 with HTTP; Tue, 23 Sep 2014 00:41:05 -0700 (PDT) In-Reply-To: <54212042.7060600@php.net> References: <54212042.7060600@php.net> Date: Tue, 23 Sep 2014 03:41:05 -0400 Message-ID: To: Michael Wallner Cc: Kris Craig , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Change checkdnsrr() $type argument behavior From: figureonecpr@gmail.com (Sanford Whiteman) 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.