Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43577 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14714 invoked from network); 1 Apr 2009 14:26:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Apr 2009 14:26:27 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 83.243.58.133 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 83.243.58.133 mailout1.netbeat.de Linux 2.6 Received: from [83.243.58.133] ([83.243.58.133:47886] helo=mailout1.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 84/E7-05266-E8973D94 for ; Wed, 01 Apr 2009 09:26:24 -0500 Received: (qmail 14535 invoked by uid 89); 1 Apr 2009 14:42:45 -0000 Received: from unknown (HELO ?192.168.1.101?) (johannes%schlueters.de@93.104.122.17) by mailout1.netbeat.de with ESMTPA; 1 Apr 2009 14:42:45 -0000 To: Paul Biggar Cc: Nuno Lopes , PHP Internals In-Reply-To: References: <29CF2C07F9044405AF6332BE2F3A373F@PC3EE1F19287> Content-Type: text/plain Date: Wed, 01 Apr 2009 16:26:18 +0200 Message-ID: <1238595978.5733.9.camel@goldfinger> Mime-Version: 1.0 X-Mailer: Evolution 2.24.3 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] RFC: Removing the Zend API From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) Hi, On Wed, 2009-04-01 at 14:24 +0100, Paul Biggar wrote: > > Moreover, in your example in the wiki you don't include how you would do > > parameter parsing. Or do you rely on the code generator to look at the C > > functions signatures and figure out by itself what to do? (actually there is > > some ambiguity, AFAIR, and thus guessing cannot be done reliably) > > That is exactly right. (I'll make this clearer in the RFC). I can't > think of any cases where guess cannot be done reliably. If you can > give me an example, I'll try and address it. Well, take your example: void Y(char *, int) Is the second parameter the length of the string or something independent? Is the char* changed? And who is going to free it? johannes