From: adam at trachtenberg dot com
Operating system: *
PHP version: 5CVS-2004-01-08 (dev)
PHP Bug Type: DOM XML related
Bug description: domXPath object returns array instead of nodeList
Description:
------------
The domXPath object still returns nodes in an array
instead of as a nodeList object.
Reproduce code:
---------------
$dom = new domDocument::load($xml);
$xpath = new domXPath($dom);
$results = $xpath->query('/');
var_dump($results);
Expected result:
----------------
object(domnodelist)#14 (0) {
...
}
Actual result:
--------------
array(1) {
...
}
--
Edit bug report at http://bugs.php.net/?id=26849&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26849&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26849&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26849&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26849&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26849&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26849&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26849&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26849&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26849&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26849&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26849&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26849&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26849&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26849&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26849&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26849&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26849&r=float