mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
bd9f4fa676
For rationale, see https://github.com/php/php-src/pull/6787 Make extension checks lowercase, add a special case for opcache that has internal name not matching .so filename. Extensions migrated in part 2: * dom * exif * fileinfo * ffi
25 lines
489 B
PHP
25 lines
489 B
PHP
--TEST--
|
|
Testing DOMDocumentFragment::appendXML and DOMDocumentFragment::hasChildNodes
|
|
--EXTENSIONS--
|
|
dom
|
|
--FILE--
|
|
<?php
|
|
$doc = new DOMDocument();
|
|
|
|
$fragment = $doc->createDocumentFragment();
|
|
if ($fragment->hasChildNodes()) {
|
|
echo "has child nodes\n";
|
|
} else {
|
|
echo "has no child nodes\n";
|
|
}
|
|
$fragment->appendXML('<foo>bar</foo>');
|
|
if ($fragment->hasChildNodes()) {
|
|
echo "has child nodes\n";
|
|
} else {
|
|
echo "has no child nodes\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
has no child nodes
|
|
has child nodes
|