Re: cvs: php4 /ext/yp CREDITS php_yp.h yp.c
| From: | Fredrik Ohrn | Date: | Mon, 19 Mar 2001 17:22:11 +0000 |
| Subject: | Re: cvs: php4 /ext/yp CREDITS php_yp.h yp.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-4660@lists.php.net to get a copy of this message | ||
On Mon, 19 Mar 2001, Andi Gutmans wrote:
> Seems to me that you can nuke the following as it will always be done in RINIT:
> +static void php_yp_init_globals(YPLS_D)
> +{
> + YP(error) = 0;
> +}
> +
> +PHP_MINIT_FUNCTION(yp)
> +{
> +#ifdef ZTS
> + yp_globals_id = ts_allocate_id(sizeof(php_yp_globals),
> (ts_allocate_ctor) php_yp_init_globals, NULL);
> +#else
> + php_yp_init_globals(YPLS_C);
> +#endif
>
> Andi
>
Yes, I just imitated the OCI8 module without much thougt. Is there any
docs available on the TSRM stuff, except for Use-the-source-Luke?
Does the id returned from ts_allocate_id need to be deallocated again in
PHP_MSHUTDOWN_FUNCTION or is that done automatically?
Regards,
Fredrik
--
Do fish get thirsty?
Fredrik Öhrn Chalmers University of Technology
ohrn@chl.chalmers.se Sweden