Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59143 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92100 invoked from network); 23 Mar 2012 17:38:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Mar 2012 17:38:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 207.97.245.123 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 207.97.245.123 smtp123.iad.emailsrvr.com Linux 2.6 Received: from [207.97.245.123] ([207.97.245.123:38279] helo=smtp123.iad.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/1A-41302-115BC6F4 for ; Fri, 23 Mar 2012 12:38:25 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp32.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id ADAD2148575; Fri, 23 Mar 2012 13:38:22 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp32.relay.iad1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 5EA6E148519; Fri, 23 Mar 2012 13:38:22 -0400 (EDT) Message-ID: <4F6CB50D.2060804@sugarcrm.com> Date: Fri, 23 Mar 2012 10:38:21 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Fran=E7ois_Gannaz?= CC: "internals@lists.php.net" References: <20120323172608.3672eec8@coriolan> In-Reply-To: <20120323172608.3672eec8@coriolan> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Validate complex types From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > I wanted to use `zend_parse_arg()` to validate a single parameter if the > first call to `zend_parse_parameters_ex()` wasn't successful. But this function > is never used outside of "Zend/zend_API.c". Is it meant for public use? Are > there any drawbacks in calling it? No, it's currently not meant for public use - it's an internal function that is not available to outside modules (thus declared 'static'). It may make sense to refactor this code and make it more accessible to functions that want to parse individual parameter, but currently it is not suited for that. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227