Re: Re: Final push towards PHP 4 release
| From: | Andi Gutmans | Date: | Sun, 12 Mar 2000 19:07:32 +0000 |
| Subject: | Re: Re: Final push towards PHP 4 release | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-16724@lists.php.net to get a copy of this message | ||
On Sun, 12 Mar 2000, Kristian Koehntopp wrote:
> > There isn't any API documentation for resources right now.
> > You'll need to take a look at some of the code others have
> > written.
>
> I will try that and search my way. The recode_files() function
> needs two filehandles for input and output files. Previously, I
> was using code like
>
> in_fp = php3_list_find(in_id,&in_type);
> if (!in_fp || (in_type!=GLOBAL(le_fp) && in_type!=GLOBAL(le_pp))) {
>
> to search for fopen/popen filehandles and I haven't turned
> around to look up how it is being done in the new interpreter,
> yet.
>
> > However, maybe you should wait for messing with it in your
> > modules after PHP 4.0. It will probably take some time for
> > your code to stabilize. Best is to first of all port the code
> > and later improve it with the new features offered by PHP 4.
>
> Is the above problem in this category or is that part already
> considered stable? I hope it is one of the more trivial
> applications of the API.
Yeah it is considered stable.
Check out zend_list.h and the ZEND*RESOURCE macros.
You'll probably also need to look at some examples in the extensions.
Andi