Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84366 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22775 invoked from network); 5 Mar 2015 23:09:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Mar 2015 23:09:23 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.175 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.175 mail-qc0-f175.google.com Received: from [209.85.216.175] ([209.85.216.175:46536] helo=mail-qc0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 08/DE-40418-222E8F45 for ; Thu, 05 Mar 2015 18:09:23 -0500 Received: by qcxr5 with SMTP id r5so46652350qcx.13 for ; Thu, 05 Mar 2015 15:09:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=jU2fea9o2m+Nw3KPz4cjjMnH0ZMx28PhGUlhaWZSIiI=; b=MNJyUYitIU3pp4E47PaBdUNBiKGu84h7z5K9OoF+kqYGA74W2DB7VZMtKcdjmY1nGu y6hAc/VzRZgOS0V/ZDM6nlLzxm0pyScVKAhKYC0FyOFvCraTX0umMHBrV5EpgZP51gq+ aa6/0h01DtNgm9ja7kpKl/MDt+6iOINkTFx90XwM1HWcjM5sev/dKhu8golAnHRW+riE KYMCENlXJ6mgbFA72HvqsaJQM8TTy7sObR4rBfIlo8MfGxEjbAVVBm6ylwsb5ngnIvyY 2i09SiK/K7WJoWTBzlh7I3uGTKFcWfQN+VzGNolP4W/Is5N6KjlcP11e3yjbCLB2cLjR Oj9g== X-Received: by 10.140.151.141 with SMTP id 135mr16649264qhx.8.1425596960032; Thu, 05 Mar 2015 15:09:20 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.198.8 with HTTP; Thu, 5 Mar 2015 15:08:39 -0800 (PST) In-Reply-To: References: Date: Fri, 6 Mar 2015 08:08:39 +0900 X-Google-Sender-Auth: NW7QJRKgBvBiC8tIXtAcNnYYzlw Message-ID: To: marcio3w@gmail.com Cc: PHP internals Content-Type: multipart/alternative; boundary=001a113552c6654dda051092a869 Subject: Re: [PHP-DEV][RFC][DISCUSSION] Strict Argument Count From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a113552c6654dda051092a869 Content-Type: text/plain; charset=UTF-8 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 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 --001a113552c6654dda051092a869--