From:             vsokolov at gmail dot com
Operating system: WinXP
PHP version:      5.0.3
PHP Bug Type:     DOM XML related
Bug description:  DOMXPath::evaluate() undefined.

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 bug report at http://bugs.php.net/?id=31593&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=31593&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=31593&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=31593&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=31593&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=31593&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=31593&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=31593&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=31593&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=31593&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=31593&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=31593&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=31593&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=31593&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=31593&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=31593&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=31593&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=31593&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=31593&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=31593&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=31593&r=mysqlcfg

Reply via email to