Re: [xml] XPathObject and user/user2



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.

Daniel


-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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