[Xapian-devel] PHP Latest

Sam Liddicott sam at liddicott.com
Fri Apr 21 17:13:34 BST 2006


Olly Betts wrote:

>On Fri, Apr 21, 2006 at 09:31:43AM +0100, Sam Liddicott wrote:
>  
>
>>Can we do anything to be more sure that all the destructors are being
>>called?
>>    
>>
>
>More testing?  Or a code audit of PHP perhaps...
>
>If we have an example which shows a problem, it should be easy to fix.
>Without an example, there's a lot of places to have to check.
>  
>
I mean a test case to show that all the xapian objects were destroyed by 
having them say-so in the destructor, or with valgrind or something.

>  
>
>>Olly, I'm still concerned about the case where wrapped objects are
>>referenced by other wrapped objects (meaning at the c++ xapian level)
>>    
>>
>
>Xapian shouldn't be able to create reference loops (certainly not
>involving WritableDatabase which is the only case where it actually
>matters).  So provided the SWIG glue destroys the C++ objects it
>holds, 
>
Do you mean refcount-- type stuff or actually destroying?

>they'll release their references to other objects which will
>then get destroyed, and so on.
>  
>
Well this is the bit I'm not very certain of.

>Cheers,
>    Olly
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.tartarus.org/pipermail/xapian-devel/attachments/20060421/ccd675eb/attachment.htm


More information about the Xapian-devel mailing list