Re: cvs: php4 /ext/sablot sablot.c

From: Date: Mon, 04 Dec 2000 09:39:40 +0000
Subject: Re: cvs: php4 /ext/sablot sablot.c
References: 1 2 3 4  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-2919@lists.php.net to get a copy of this message
On Mon, Dec 04, 2000 at 09:33:01AM +0100, Thies C. Arntzen wrote: > On Sun, Dec 03, 2000 at 08:34:26PM +0200, Andi Gutmans wrote: > > At 19:15 03/12/00 +0100, Sterling Hughes wrote: > > > >You can't use _FETCH() and the ..G() macros in MINIT. > > > >Use them only during a request. > > > > > > > > > >Its already been reverted, I assume you can't use them in MSHUTDOWN as well > > >then? > > > > Right. They are per-request, i.e. they can be used in RINIT, RSHUTDOWN and > > internal functions. > > andi, > could you explain why? > TSRM is per-thread and knows nothing about requests AFAIK. sorry - after thinking twice: in the MINIT you usually allocate the tsrm_id for the module. therefore you can't use it like this. grep for ts_allocate_id in ext/*/*.c to see how it's done in ZTS/non-ZTS mode. tc > > tc > > > > Andi > > --- > > Andi Gutmans <andi@zend.com> > > http://www.zend.com/ > > > > -- > > PHP CVS Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-cvs-unsubscribe@lists.php.net > > For additional commands, e-mail: php-cvs-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > -- > PHP CVS Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-cvs-unsubscribe@lists.php.net > For additional commands, e-mail: php-cvs-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.cvs (#2919) next »