Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77508 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56720 invoked from network); 23 Sep 2014 07:41:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2014 07:41:28 -0000 Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.43 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.219.43 mail-oa0-f43.google.com Received: from [209.85.219.43] ([209.85.219.43:47253] helo=mail-oa0-f43.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 28/77-09206-72421245 for ; Tue, 23 Sep 2014 03:41:28 -0400 Received: by mail-oa0-f43.google.com with SMTP id m19so4806174oag.16 for ; Tue, 23 Sep 2014 00:41:25 -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=E+xJUyr1FmP6XSYNMh/5TU4qi2oU8eK/3u8xTuqEKok=; b=q/rJSIKGSQTJiyF+DuhYhPpr/grS1UoQT31sySP6dtcc62YmTyAtck31ecsDl+xYF2 nqkl6s6sOp5s92phGQyetBpOE3XDv+EKtl0v65Wxg5aepq8e+BPZHV3tIqYNHO1hWxMt 0l5T7eUNyM1WZr+OZy1XqFzL26XPemA6ydioLLBlrenSXcBf1d8odAys0aRvvVS5YWKX UM0tNYopAtaAJ4ruUIYV8afzl/eusuiatH1KyfRpdtVC4aafSwzqWAAUfe5Vkx8pUHCj ngh6xAIEe9JyxPXqaJ1kePrfQIouzkxphOKwZF2UGSEn/6yJ+RCbhTY3xJ02sxDyFM6f y8eA== MIME-Version: 1.0 X-Received: by 10.182.27.40 with SMTP id q8mr811500obg.86.1411458085429; Tue, 23 Sep 2014 00:41:25 -0700 (PDT) Received: by 10.202.227.206 with HTTP; Tue, 23 Sep 2014 00:41:25 -0700 (PDT) In-Reply-To: <5421237A.8000707@php.net> References: <54212042.7060600@php.net> <5421237A.8000707@php.net> Date: Tue, 23 Sep 2014 00:41:25 -0700 Message-ID: To: Michael Wallner Cc: Sanford Whiteman , PHP Internals Content-Type: multipart/alternative; boundary=089e01229762cc2a7f0503b6b1f2 Subject: Re: [PHP-DEV] [RFC] Change checkdnsrr() $type argument behavior From: kris.craig@gmail.com (Kris Craig) --089e01229762cc2a7f0503b6b1f2 Content-Type: text/plain; charset=UTF-8 On Tue, Sep 23, 2014 at 12:38 AM, Michael Wallner wrote: > On 2014-09-23 09:30, Kris Craig wrote: > > > > > > On Tue, Sep 23, 2014 at 12:24 AM, Michael Wallner > > wrote: > > > > On 2014-09-23 06:00, Sanford Whiteman wrote: > > >> What would happen is it'd throw an E_DEPRECATED for at least the > > remainder > > >> of 5.x, then throw the usual E_WARNING for a missing argument > > starting in > > >> 7.x with no default. > > > > > > Sounds OK to me now that I've noticed this: > > > > > > https://bugs.php.net/bug.php?id=68081 > > > > > > Pretty sure that's a sane report, and it's enough to make me say > > > checkdnsrr() doesn't work now at all. > > > > > > Given that this function is over 16 years old [1] and guessing that > it > > was used as a simple kind of email domain verification, I think > > checkdnsrr() works as expected [2], [3]. > > > > [1] http://marc.info/?l=php-internals&m=90222489331812&w=2 > > [2] http://tools.ietf.org/html/rfc2821#section-5 > > [3] http://tools.ietf.org/html/rfc5321#section-5.1 > > > > -- > > Regards, > > Mike > > > > > > Except that it doesn't work as expected because most devs (including > > myself) aren't readily familiar with posts from 1998. And even if that > > were its purpose back then, that really has no relevance today, as the > > purpose and identity of PHP itself has evolved drastically since then. > > > > If that really is a concern, though, then I would propose getting rid of > > checkdnsrr() altogether (or making it an alias of checkmxrr()) and > > creating a new general-purpose DNS lookup function that returns a > > boolean. Of course, I really don't think that's necessary since this > > stuff from 16 years ago doesn't have any meaningful bearing on how it's > > being used today by modern PHP developers. > > Phew, "modern" or rather "unaware" or "uneager to research"? > Anyway, I'm done with this topic; I don't see any reason for action, > except maybe, improving related documentation. > > > -- > Regards, > Mike > Wow that got personal really fast. I was just saying that, when most devs look-up a function on php.net, they don't also then search Google for any decades-old references that might yield some additional insight on the origin story of the function. I don't think that means they're not intellectually curious. --Kris --089e01229762cc2a7f0503b6b1f2--