Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77331 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58874 invoked from network); 19 Sep 2014 09:58:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Sep 2014 09:58:21 -0000 Authentication-Results: pb1.pair.com header.from=are.you.winning@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=are.you.winning@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.179 as permitted sender) X-PHP-List-Original-Sender: are.you.winning@gmail.com X-Host-Fingerprint: 209.85.216.179 mail-qc0-f179.google.com Received: from [209.85.216.179] ([209.85.216.179:36215] helo=mail-qc0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CC/22-44461-D3EFB145 for ; Fri, 19 Sep 2014 05:58:21 -0400 Received: by mail-qc0-f179.google.com with SMTP id x13so2853872qcv.10 for ; Fri, 19 Sep 2014 02:58:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=6gwsziQliA8aDB/Tb1f3SCayAkqTZ3/yZs23T+9ld10=; b=B8+mq4wdnW5GTwe5vd9d/d7da7JLdifA0Si/OzOnRzDNBFWyG/PNbqV4TALciFgQKA MgY6aK2I3gH5RRDkhHZyoG5csIYEsnV/DZ58sm7JdZAcdObMdmJMmuqW9ugqyj5tEtB9 TEh9PjdX2kJqtSlxS9qKlTCg1hmlkta3pCaZ1ClsODOOgolrvZBALBt7yChzO7snsNLb pm1Csz8JpdGf2gbd9Ymvr5tXlyvpaLxGZgiVs8/fdB1VKHQmgglNEUA9b1RlAPFgRFRt S/jORO0s9M0WNsJYBbNmduUUA72Vd/C5rBOZBLiXaML06a0T1mwbb6Bts4E9ZxUUcj0C x2IA== MIME-Version: 1.0 X-Received: by 10.140.82.85 with SMTP id g79mr2494084qgd.14.1411120699083; Fri, 19 Sep 2014 02:58:19 -0700 (PDT) Sender: are.you.winning@gmail.com Received: by 10.141.28.193 with HTTP; Fri, 19 Sep 2014 02:58:19 -0700 (PDT) In-Reply-To: References: Date: Fri, 19 Sep 2014 10:58:19 +0100 X-Google-Sender-Auth: hw50_UGNNfeIg6lsjClbF1a7KO8 Message-ID: To: Kris Craig Cc: PHP internals list Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Why does checkdnsrr() default to MX?? From: cw@daverandom.com (Chris Wright) On 18 September 2014 20:29, Kris Craig wrote: > Hey guys, > > I just spent some time troubleshooting what appeared to be a DNS issue > before I realized that, absent the optional $type argument, checkdnsrr() > defaults to "MX". Can anybody explain why it's defaulting to "MX" and not > "ANY"? It seems really counter-intuitive. > > --Kris This is a big wtf, especially since getmxrr() exists. A cursory search of github (not the best measure I know, but easy) reveals only a few cases where this function is called without the second argument, and every case I've found looks like they were expecting an A record, so this code is likely broken anyway. In other words, +1 to change this to something saner ASAP.