Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49359 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71229 invoked from network); 11 Aug 2010 18:20:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Aug 2010 18:20:35 -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.113 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 207.97.245.113 smtp113.iad.emailsrvr.com Linux 2.4/2.6 Received: from [207.97.245.113] ([207.97.245.113:51382] helo=smtp113.iad.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/8C-01618-1F9E26C4 for ; Wed, 11 Aug 2010 14:20:34 -0400 Received: from relay31.relay.iad.mlsrvr.com (localhost [127.0.0.1]) by relay31.relay.iad.mlsrvr.com (SMTP Server) with ESMTP id 346801B4D3A; Wed, 11 Aug 2010 14:20:31 -0400 (EDT) Received: by relay31.relay.iad.mlsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id D13A51B4228; Wed, 11 Aug 2010 14:20:30 -0400 (EDT) Message-ID: <4C62E9ED.8010400@sugarcrm.com> Date: Wed, 11 Aug 2010 11:20:29 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 MIME-Version: 1.0 To: Kalle Sommer Nielsen CC: Elizabeth M Smith , Internals References: <1281478269.6608.292.camel@guybrush> <4C61D6D0.90907@sugarcrm.com> <4C62B9E0.4030305@gmail.com> <1281540200.1132.36.camel@guybrush> <4C62C957.8040403@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: params ext (was: Strict typing) From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > Sara wrote an extension for zend_parse_parameters() to expose it to > userland and its available in PECL: > http://svn.php.net/viewvc/pecl/params/trunk/ > > Im a +1 for exposing such functionality from the core/stdlib. I like the idea, though it looks like this function is a re-implementation of the engine parsing, which is not good. The function that actually reuses the engine function would be much better. Ahother thing - for core I think it has to be named something like func_parse_args() to be in line with func_get_args() etc. and some error feedback (like, which parameter failed and why) wouldn't hurt. But having such thing in core would be very nice. Though it wouldn't solve the current debate about types/params, since the whole idea is for it to work without calling additional functions. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227