Re: [xml] XPathObject and user/user2
- From: Christian Stocker <chregu bitflux ch>
- To: veillard redhat com
- Cc: xml <xml gnome org>
- Subject: Re: [xml] XPathObject and user/user2
- Date: 02 Dec 2002 17:24:47 +0100
Hi
just for your information
I indeed didn't need to communicate the XPathObject to the outside,
therefore I don't need all those ugly hacks anymore .)
I'll see what I can do about XPathContext (I assume, I have to dig
further into Zend/PHPs object management..)
Thanks very much for your useful and quick help.
chregu
On Fri, 2002-11-29 at 18:09, Christian Stocker wrote:
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
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml
--
christian stocker | bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch | chregu bitflux ch | gnupg-keyid 0x5CE1DECB
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]