mirror of
https://github.com/php/php-src.git
synced 2024-12-03 23:05:57 +08:00
21 lines
473 B
PHP
21 lines
473 B
PHP
--TEST--
|
|
Bug #35342 (isset(DOMNodeList->length) returns false)
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--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));
|
|
var_dump(empty($nodelist->length), empty($nodelist->foo));
|
|
?>
|
|
--EXPECT--
|
|
int(2)
|
|
bool(true)
|
|
bool(false)
|
|
bool(false)
|
|
bool(true)
|