Skip to main content.
home | support | download

Back to List Archive

RE: Anyone using the PHP module?

From: Bill Moseley <moseley(at)not-real.hank.org>
Date: Fri Oct 10 2003 - 21:17:04 GMT
On Fri, Oct 10, 2003 at 10:47:52PM +0200, jmruiz@boe.es wrote:
> I think that PHP frees the resources for you when the page ends.
> 
> How PHP is able to do that thing?
> Well, the destructors (_php_swishe_close, _php_swishe_search_clos,
> etc.) are registered in PHP_MINIT_FUNCTION.
> Also, when an "object" is created it is also registered with its destructor.
> Internally, PHP holds a list of the created objects and when the page
> ends it calls the destructors for all the created objects.
> So, you do not need to take care of destroying them.

Ok, I see.  Like I said in my other post I was confused about your use
of efree() -- I thought you were using the efree() in swish.

So you are calling Free_Results_Object() and Free_Search_Object()?

-- 
Bill Moseley
moseley@hank.org
Received on Fri Oct 10 21:20:52 2003