Re: RFC: Removing the Zend API
| From: | Johannes Schlüter | Date: | Wed, 01 Apr 2009 14:26:18 +0000 |
| Subject: | Re: RFC: Removing the Zend API | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-43577@lists.php.net to get a copy of this message | ||
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