Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84369 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28339 invoked from network); 5 Mar 2015 23:43:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Mar 2015 23:43:53 -0000 Authentication-Results: pb1.pair.com header.from=marcio.web2@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=marcio.web2@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.52 as permitted sender) X-PHP-List-Original-Sender: marcio.web2@gmail.com X-Host-Fingerprint: 209.85.215.52 mail-la0-f52.google.com Received: from [209.85.215.52] ([209.85.215.52:43933] helo=mail-la0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6D/FF-40418-93AE8F45 for ; Thu, 05 Mar 2015 18:43:53 -0500 Received: by labgf13 with SMTP id gf13so29849745lab.10 for ; Thu, 05 Mar 2015 15:43:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=YsdPHy3urLtEBnef5BxQ8CwESH5UqIzCekFxF9t88UY=; b=stTfWBdRHIsEs5FGIRFSZLG1i95MmZp7FHWOrByiMSH4DH9xSNUZNOi1LE7P0IVvH/ 5apP0Q7kG1/1RS7Dtdl8/IJR9p5yWjURwSHDrPSci/2MUAJaJbd1jfru5xX3EaoYITT3 flN2LHITiWbmuE3pVZVUijr42/Oban76iwcQkF2FcZ7bXOWxnTlhSjl6/Doufm3+l5dC kZP9jWcejv6hBsrHildEjQNWEvHF05e9gpwNUuU8Hgfw10qL4p6IM8cv9wdOY0D74LlE s9eQmDVNxofhB5Tb52y9Eb7UuThKJJ2EoEzxr6DiT7y/rb24ipQCPPvRb23fIeFrW8DI zT/w== X-Received: by 10.112.173.133 with SMTP id bk5mr10210101lbc.94.1425599029519; Thu, 05 Mar 2015 15:43:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.152.118.193 with HTTP; Thu, 5 Mar 2015 15:43:28 -0800 (PST) Reply-To: marcio3w@gmail.com In-Reply-To: References: Date: Thu, 5 Mar 2015 20:43:28 -0300 Message-ID: To: Yasuo Ohgaki Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11c23816bf2c2a0510932318 Subject: Re: [PHP-DEV][RFC][DISCUSSION] Strict Argument Count From: marcio.web2@gmail.com (Marcio Almada) --001a11c23816bf2c2a0510932318 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, 2015-03-05 20:08 GMT-03:00 Yasuo Ohgaki : > Hi Marcio, > > On Fri, Mar 6, 2015 at 6:36 AM, Marcio Almada > wrote: > >> It would be nothing new or weird. It's just a simple compile time check. >> We already "inspect" code in many other situations while compiling and a >> lot of behaviors during execution already depend on compile time checks.= I >> don't think this is "too much". It might sound unusual, at first, but th= ere >> is nothing wrong with this. > > > I really like your idea. You proved usefulness very well by your research= . > My only concern is non-language construct detection by compiler. I'll vot= e > "yes" regardless of my suggestion if it's not an issue. > Great, thanks. > Zeev suggested better path for migration, not to raise errors > (E_ERROR/E_WARNING/E_NOTICE) instead raise E_DEPRECATED/E_STRICT, for PHP= 7 > in other thread. You may consider the suggestion while I think E_WARNING = is > OK. > > You are right about this. I'll setup a yes/no vote + a vote to decide between E_WARNING (for consistency), E_DEPRECATED or E_STRICT. For me this is just a detail but maybe it's very important to others, so better to let each voter decide upon it. Regards, > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net > > Regards, M=C3=A1rcio --001a11c23816bf2c2a0510932318--