This commit is contained in:
Rob Richards 2005-11-23 03:10:45 +00:00
parent 406910e1e9
commit 8c8f92f45f

View File

@ -0,0 +1,17 @@
--TEST--
Bug # 35342: isset(DOMNodeList->length) returns false
--SKIPIF--
<?php require_once('skipif.php'); ?>
--FILE--
<?php
$dom = new DOMDocument();
$dom->loadXML("<root><foo>foobar</foo><foo>foobar#2</foo></root>");
$nodelist = $dom->getElementsByTagName("foo");
var_dump($nodelist->length, isset($nodelist->length), isset($nodelist->foo));
?>
--EXPECT--
int(2)
bool(true)
bool(false)