Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:102452 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 89527 invoked from network); 26 Jun 2018 11:28:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jun 2018 11:28:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.182 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.128.182 mail-wr0-f182.google.com Received: from [209.85.128.182] ([209.85.128.182:35666] helo=mail-wr0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/F3-50433-643223B5 for ; Tue, 26 Jun 2018 07:28:06 -0400 Received: by mail-wr0-f182.google.com with SMTP id c13-v6so6917714wrq.2 for ; Tue, 26 Jun 2018 04:28:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=YEqhGE81DrZFyGNv7IdHmuQk7tqh7Dym5rbVDjRi24c=; b=BqOScsu1iUzImI4DbjGDyG3UKbegXBaLGxhwPRsBOuvibOuHf/g31hb1sENpTBil14 U06esxXsk4MWKhIwA6L9gH9s/4tAa0vuqDn/Kom4WmyeG77xjaBicKqsR8olOR+8Mceb 0hSYCr0Qa1d3tSpapiTDk/Jz/1k5Vc2Tma6QSs8NC/SSPhgyJqgmNMFPMPU2DkDSxVFO ZZ00YhbY7LSljbm4tfdvWsWUKDb/ilhPxe9EkPvVBDZeXdmF2z1Eg5MYyM5CWXFQTswp 8tsH3Zzro5jlO07Qby9D9lHOt9cnuO+9uBsSQcyxESNH4/iSszGpl9Ajst5d9j8FK1U2 ne1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=YEqhGE81DrZFyGNv7IdHmuQk7tqh7Dym5rbVDjRi24c=; b=PaPIZ1g9QSFejd8tycn1xy4BF46Fbndor7PhaQkP8jhmRLKRDiu8etjSOTF5v9zAre 0aQAeyXUxrVXBv54W5GGWH5C5nCs7mtKdekt0e7POi3ThTTYCP7C4t/R7K2eWgvYn4DI B8uE/pQGNeDCH8bI7XOI3OAJFNZFyxKj3ELxaKgkYvkBIjrJkrbLpNqpqRt/uxSNLjRv XrWpC8ATv+JtyVSYmxhoLrT+D0fYlvENyvhbb/SmwtDYjpQ10pzrK1Myebg9IvQt0p0J Q+CSyE6GphVe6RxLkKaANt7qYa2QzLDh9GeasYBO6UBXYnziC8njSdcZPryc5qF53iqc 00uw== X-Gm-Message-State: APt69E1pxtVlPQ+Mh2EhpmxRucrY3IN5TzG4fAumPNej1K+jd2DSpaW3 YV7apcXhCd2gjg+3bLwdenfAI7dJJraxucRGxxk= X-Google-Smtp-Source: AAOMgpdOzjlDcvTMZOtLeLnGFNemvR60oaP169oFbC5uWiNpFcAXPJN3ECI6Rl/i5tDqEwkpJOex0fGsu+m5BjQZygI= X-Received: by 2002:adf:b243:: with SMTP id y3-v6mr1107277wra.168.1530012482774; Tue, 26 Jun 2018 04:28:02 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:adf:f18c:0:0:0:0:0 with HTTP; Tue, 26 Jun 2018 04:27:42 -0700 (PDT) In-Reply-To: References: Date: Tue, 26 Jun 2018 13:27:42 +0200 Message-ID: To: Sara Golemon Cc: Nikita Popov , PHP internals Content-Type: multipart/alternative; boundary="00000000000089acfa056f89ca6a" Subject: Re: [PHP-DEV] [RFC] Deprecations for PHP 7.3 From: ocramius@gmail.com (Marco Pivetta) --00000000000089acfa056f89ca6a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Jun 25, 2018 at 9:32 PM, Sara Golemon wrote: > > Defining a free-standing assert() function > > > Eww, yeah. I can see that problem. I'm not a huge fan of banning all > namespaced assert() function declarations, but it's certainly the most > direct "solution" to the problem. A very quick scan of github only > shows one effected usage in a repo with no followers/stars apart from > the owner. Given the lack of whole-program analysis, it's either ban > the declarations, or abandon elision. Frankly, the number of people > taking advantage of the free dev-only check is probably way higher > than the number trying to define a function called 'assert' so.... =F0=9F= =98=AC Or require a FQN for an imported `assert()`? Importing functions is getting traction. Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ --00000000000089acfa056f89ca6a--