Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77505 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52829 invoked from network); 23 Sep 2014 07:30:52 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Sep 2014 07:30:52 -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.214.175 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.214.175 mail-ob0-f175.google.com Received: from [209.85.214.175] ([209.85.214.175:54829] helo=mail-ob0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 32/A6-09206-BA121245 for ; Tue, 23 Sep 2014 03:30:52 -0400 Received: by mail-ob0-f175.google.com with SMTP id m8so4731159obr.34 for ; Tue, 23 Sep 2014 00:30:49 -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=6nZHCwmhyBvBOCKmywNABlQDGCVPSYeBGogpaJt1Jvo=; b=PFqEL8cxJMKMIoyGDkivpvZl4hTKHi1Bg7hj2oyZlNv2WqncI2UkU605edbsPeadkR tQ4cuzpNxSBKIklyl9NuT2tR4GWAu2c54nTcmJbaUQEFcESCoPxPgh8Jt5yMEPgIdJeB gHlKoAxTB0n8jmm/BxGGQ9UaDpL1VUzxmi3/X48fQAeXfNoQfnGMukJ+JgFwQsyiz3xz R1J/HGbmchvh1+KjPTS68tGG7EEesONLPyTNhC+s7H9fo53SnrFdsKx4B12/w+One+RG MahCnk4jzG7+2vpzvnSB/+QYZsv48tsqf4yQdFXLB2n2315xN4wyo3L/mofpy+12pRWX Jr5Q== MIME-Version: 1.0 X-Received: by 10.182.107.234 with SMTP id hf10mr32027186obb.22.1411457449330; Tue, 23 Sep 2014 00:30:49 -0700 (PDT) Received: by 10.202.227.206 with HTTP; Tue, 23 Sep 2014 00:30:49 -0700 (PDT) In-Reply-To: <54212042.7060600@php.net> References: <54212042.7060600@php.net> Date: Tue, 23 Sep 2014 00:30:49 -0700 Message-ID: To: Michael Wallner Cc: Sanford Whiteman , PHP Internals Content-Type: multipart/alternative; boundary=089e0115ef9ae20e200503b68bd4 Subject: Re: [PHP-DEV] [RFC] Change checkdnsrr() $type argument behavior From: kris.craig@gmail.com (Kris Craig) --089e0115ef9ae20e200503b68bd4 Content-Type: text/plain; charset=UTF-8 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. --Kris --089e0115ef9ae20e200503b68bd4--