Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55527 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39330 invoked from network); 19 Sep 2011 09:18:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Sep 2011 09:18:54 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 207.97.245.163 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 207.97.245.163 smtp163.iad.emailsrvr.com Linux 2.6 Received: from [207.97.245.163] ([207.97.245.163:44396] helo=smtp163.iad.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 05/E8-14600-DF8077E4 for ; Mon, 19 Sep 2011 05:18:54 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp56.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id 780E13D8276; Mon, 19 Sep 2011 05:18:51 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp56.relay.iad1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 12D093D828D; Mon, 19 Sep 2011 05:18:50 -0400 (EDT) Message-ID: <4E7708FA.7080802@sugarcrm.com> Date: Mon, 19 Sep 2011 02:18:50 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 MIME-Version: 1.0 To: Gustavo Lopes CC: "internals@lists.php.net" References: <4E74E5A0.2030006@sugarcrm.com> <4E76320F.6010904@sugarcrm.com> <4E764137.9080507@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] __constructor parameter limitations. From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! On 9/19/11 2:12 AM, Gustavo Lopes wrote: > Arbitrary as it may be, it's nevertheless reasonably arbitrated given how > little useful it is to just ignore arguments and how likely it is to a > mistake. It is not little useful and it is not likely to make such mistake without immediately being notified and corrected. I don't know how you make these assumptions or what they are based on - could you please bring some evidence? > And I don't buy the func_get_args() argument. Why would anyone use > func_get_args for anything other than variadic functions?... I certainly > don't. So you say if you personally don't use something in PHP nobody should use it? And, BTW, what's wrong with variadic functions (i.e., ones accepting variable number of arguments)? Such functions are commonplace in PHP. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227