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
[EMAIL PROTECTED]                                                  Sweden


-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to