|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-08-21 14:01 UTC] jw at jwscripts dot com
[2004-09-23 18:56 UTC] chregu@php.net
[2004-09-23 22:10 UTC] jw at jwscripts dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 08:00:02 2025 UTC |
Description: ------------ When the ZE1 compatibility has been enabled (in php.ini: zend.ze1_compatibility_mode=On), the usage of domXpath::query() results in an Invalid XPath Context error. There are no problems when the ZE1 compatibility is disabled. Reproduce code: --------------- $dom = new domDocument; $dom->loadXML("<root> hello </root>"); $xpath = new domXPath($dom); $results = $xpath->query('//root'); echo "<b>Node value:</b> ", $results->item(0)->nodeValue; Expected result: ---------------- Node value: hello Actual result: -------------- Warning: Invalid XPath Context in [...] on line [...]