ID:               31593
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to