Re: MINIT or RINIT
| From: | Rasmus Lerdorf | Date: | Tue, 23 Apr 2002 10:30:28 +0000 |
| Subject: | Re: MINIT or RINIT | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-83206@lists.php.net to get a copy of this message | ||
Well, where are you storing them? Make sure they are not in memory that
gets cleaned on a per-request basis. ie. do your own malloc() in MINIT
and free() in MSHUTDOWN.
-Rasmus
On Tue, 23 Apr 2002, Sam Liddicott wrote:
> Swig generated code registers some overloaded classes to wrap C classes.
>
> I think it should do this in PHP_MINIT but when I do it here they are only
> available as registered for the first apache request.
>
> If I register them in PHP_RINIT then they are always available.
>
> Why would this be so? Which should I use?
>
> Sam
>
>
>
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>