[Xapian-devel] PHP Latest
Daniel Ménard
Daniel.Menard at Bdsp.tm.fr
Thu Apr 20 16:11:14 BST 2006
Olly Betts a écrit :
>class A {
> int b(int c, float c);
>};
>
>Which is valid as a declaration (although not for the actual definition)
>and SWIG was changed to accept it because compilers do (due to an
>example of this in xapian.i at one point!)
>
>
Ah, I remember why I always thought C++ was too subtil for me !
>Alternatively, we can probably just ignore the default constructor in
>cases where it only creates a useless dummy object - I think in PHP it
>would be more natural to say "$db = Null;" rather than "$db = new
>Database();"
>
You're right, writing "$db = new Database();" to "clear" something does
not seem natural at all for me !
BTW, you remember me a problem I had with my wrapper and that I have not investigated : I had to explicitely release the object (php should do it automatically). For example, with a WritableDatabase, the lock file was not removed if I didn't write "$db=null".
I will have to test the new wrapper to check that we don't have a similar problem.
>Yes (you could try 0.9.4+patch and just nuke the wrapping bits for the
>new method by hand actually, but that's probably not vital for working
>out where the extra time went).
>
>
Ok, I will try ASAP (tomorrow, I hope, because I will then be out for a
week and half...)
Best regards,
--
Daniel Ménard
Banque de Données Santé Publique
Avenue du Professeur Léon Bernard
35043 Rennes Cédex
Tél. (+33) 2.99.02.29.42
Fax (+33) 2.99.02.26.28
E-mail Daniel.Menard at Bdsp.tm.fr
http://www.bdsp.tm.fr
More information about the Xapian-devel
mailing list