php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31593 DOMXPath::evaluate() undefined.
Submitted: 2005-01-18 09:53 UTC Modified: 2005-01-18 11:54 UTC
From: vsokolov at gmail dot com Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 5.0.3 OS: WinXP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vsokolov at gmail dot com
New email:
PHP Version: OS:

 

 [2005-01-18 09:53 UTC] vsokolov at gmail dot com
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()

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-18 11:54 UTC] chregu@php.net
It will only be available in PHP 5.1
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 03:01:28 2024 UTC