#31593 [Opn->Bgs]: DOMXPath::evaluate() undefined.

From: Date: Tue, 18 Jan 2005 10:54:44 +0000
Subject: #31593 [Opn->Bgs]: DOMXPath::evaluate() undefined.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-72359@lists.php.net to get a copy of this message
 ID:               31593
 Updated by:       chregu@php.net
 Reported By:      vsokolov at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         DOM XML related
 Operating System: WinXP
 PHP Version:      5.0.3
 New Comment:

It will only be available in PHP 5.1


Previous Comments:
------------------------------------------------------------------------

[2005-01-18 09:53:02] 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()


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=31593&edit=1


Thread (2 messages)

« previous php.bugs (#72359) next »