Re: [RFC][DISCUSSION] Strict Argument Count

From: Date: Thu, 05 Mar 2015 23:08:39 +0000
Subject: Re: [RFC][DISCUSSION] Strict Argument Count
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-84366@lists.php.net to get a copy of this message
Hi Marcio, On Fri, Mar 6, 2015 at 6:36 AM, Marcio Almada <marcio.web2@gmail.com> 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 there > 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 vote "yes" regardless of my suggestion if it's not an issue. Zeev suggested better path for migration, not to raise errors (E_ERROR/E_WARNING/E_NOTICE) instead raise E_DEPRECATED/E_STRICT, for PHP7 in other thread. You may consider the suggestion while I think E_WARNING is OK. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#84366) next »