|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-18 11:54 UTC] chregu@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 14:00:01 2025 UTC |
Description: ------------ DOMXPath::evaluate() is reported as undefined though there are no notes in the manual about it being unavailable in any builds. The other DOMXPath methods specified in the manual work as expected. Reproduce code: --------------- define(NS, "VMP"); ... $this->definition = DomDocument::load("contracts/{$this->driver}.xml"); $this->xpath = new DOMXPath($this->definition); $this->xpath->registerNamespace('vmp', NS); $this->name = $this->xpath->evaluate('/vmp:contract-definition/@name'); ----------------------------------- <vmp:contract-definition name="Dummy contract" xmlns:vmp="VMP" /> Actual result: -------------- Fatal error: Call to undefined method DOMXPath::evaluate()