Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:38673 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78183 invoked from network); 28 Jun 2008 19:20:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Jun 2008 19:20:32 -0000 Authentication-Results: pb1.pair.com header.from=david.coallier@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=david.coallier@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.198.230 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: david.coallier@gmail.com X-Host-Fingerprint: 209.85.198.230 rv-out-0506.google.com Received: from [209.85.198.230] ([209.85.198.230:40734] helo=rv-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A5/74-24558-EFE86684 for ; Sat, 28 Jun 2008 15:20:31 -0400 Received: by rv-out-0506.google.com with SMTP id g37so789735rvb.23 for ; Sat, 28 Jun 2008 12:20:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=nmvfafIn16Zw1ZGf6hq9C8InsSMlWiyl16LbzPRxELw=; b=w4kY/D7qjjZ6X0D8Y1qVCiROl+HYMWTZ6GFU7kv8G/u8u0nA4qbmqS1d55AWslYEyf ekPuXp9+15ha7k79WCyJxKQd2kOb3NX77RfqvRiY5owJH3M+/nauMKBF433SWP5xgzXy EFSMcgp4NH72rwqdcrE6lSAy8ON9uCQ+6xp74= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=BXV9vVYQNLXsKQbS2S9+q9uPw+vL16FjPZibwt7Q8F3DJ8OjSaDpP//0RI46AdMkHZ nOLnfwY9AXO32w7mhswYYJQiJd+mGw6KlrNcTmDg93c1syCOMeOhCn0Ru7TZw9TQPnf5 5bBre5yiWSOATCNj6V+bmCnjJmTbAGLt1lEQ0= Received: by 10.114.184.9 with SMTP id h9mr2658256waf.151.1214680828223; Sat, 28 Jun 2008 12:20:28 -0700 (PDT) Received: by 10.115.61.1 with HTTP; Sat, 28 Jun 2008 12:20:28 -0700 (PDT) Message-ID: Date: Sat, 28 Jun 2008 20:20:28 +0100 Sender: david.coallier@gmail.com To: "Jordan Wambaugh" Cc: "PHP Internals" In-Reply-To: <7439A4DE-6DBA-405E-9210-C3819AD1E59B@wambaugh.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <485AE658.3050204@zend.com> <043C48F1-00DF-4882-AB70-A368C5D32DA1@wambaugh.org> <7439A4DE-6DBA-405E-9210-C3819AD1E59B@wambaugh.org> X-Google-Sender-Auth: fe9d07d962457d80 Subject: Re: [PHP-DEV] cleaning up the functions - any volunteers? From: davidc@php.ie ("David Coallier") 2008/6/28 Jordan Wambaugh : > > On Jun 28, 2008, at 7:27 AM, David Coallier wrote: > >> The idea of the new parsing parameter is to catch the number of >> parameters as well. For instance when you have >> >> if (ZEND_NUM_ARGS() < 2) { >> WRONG_PARAM_COUNT; >> } >> >> then your zend parse param function call should have 2 params or more >> Ex: >> >> int argc; >> char *name; >> zval **other; >> >> if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sZ", &name, >> &other, &argc) == FAILURE) { >> return; >> } >> >> This way of parsing the parameters remove the ZEND_NUM_ARGS() and >> WRONG_PARAM_COUNT and adds consistency in the return error messages >> across the language. >> >> Also next time please read the previous entries of the thread : >> >> See: http://url.ie/hck that was about the 3rd or 4th message. >> >> Anyways that's ok, I lot of conflicts now in formatted_print.c and >> assert.c but I'll work around them to get the resolved. We just have >> to get organized on which files we'll be working on then. Right now, >> Olivier is working on file.c and has done string.c so please don't do >> those 2 files. > > Ok, sorry, I didn't catch the thread where you said you were going to work > on standard. Do you want me to fix it so I'm not checking ZEND_NUM_ARGS, or > should I just leave that to you? Go ahead, you are pretty well started, I'll adjust after you are done :) -- Slan, David