XPath relative query to pointer
| From: | Virgilio Sanz | Date: | Tue, 09 Aug 2005 09:15:14 +0000 |
| Subject: | XPath relative query to pointer | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-20331@lists.php.net to get a copy of this message | ||
Hi list,
I believe I've found a bug on the function evaluate of class XPath. Particularly, when using param in_movePointer the query is evaluated from the root and not from the node pointer. The solution is changing the function call to:
$result=@xpath_eval($this->ctx,$xpathQuery,$this->pointer);which before was:
$result=@xpath_eval($this->ctx,$xpathQuery);Should I send this to the bug list or am I mistaken? Regards, Virgilio Sanz Project Manager PRISACOM, S.A. <DIV><FONT size="1"> ============================================================================ This e-mail message and any attached files are intended SOLELY for the addressee/s identified herein. It may contain CONFIDENTIAL and/or LEGALLY PRIVILEGED information and may not necessarily represent the opinion of this company. If you receive this message in ERROR, please immediately notify the sender and DELETE it since you ARE NOT AUTHORIZED to use, disclose, distribute, print or copy all or part of the contained information. Thank you. ============================================================================ </FONT></DIV>