Re: [xml] XPathObject and user/user2



On Fri, 2002-11-29 at 17:32, Daniel Veillard wrote:
On Fri, Nov 29, 2002 at 05:30:12PM +0100, Christian Stocker wrote:
On Fri, 2002-11-29 at 13:17, Daniel Veillard wrote:
   Seems unlikely unless it also uses XSLT with the same objects,
but having a crash sounds more probable, code like:
   xmlFreeNodeList((xmlNodePtr) obj->user);
with a pointer to PHP objects is likely to make a lot of damages !
And this is part of xmlXPathFreeObject(), so this hack looks really really
dangerous.

I feared that... It looks like I have to rewrite this XPath stuff then,
since there are unfortunately no _private members in those structs.

  user2 might be safer
I have a hard time understanding why you need to store pointer in the 
XPath objects, In the XPath evaluation context that's understandable,
but in the core objects, I can't understand.

Mmmmh, the main code of PHP libxml2 extension is not by me, so I have to
check this stuff more thoroughly and look, if we really need it. 

I'll report later, what I found :)

christian




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]