mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

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
41 lines
659 B
PHP
41 lines
659 B
PHP
--TEST--
|
|
DOMParentNode::append()
|
|
--EXTENSIONS--
|
|
dom
|
|
--FILE--
|
|
<?php
|
|
declare(strict_types=1);
|
|
|
|
require_once("dom_test.inc");
|
|
|
|
$dom = new DOMDocument;
|
|
$dom->loadXML('<test><mark/><mark /><mark /></test>');
|
|
|
|
$element = $dom->documentElement;
|
|
$element->append(
|
|
$dom->createElement('element', 'content'),
|
|
'content'
|
|
);
|
|
|
|
var_dump($dom->documentElement->childElementCount);
|
|
print_node_list_compact($element->childNodes);
|
|
|
|
$element->append(
|
|
$dom->createElement('element', 'content'),
|
|
'content'
|
|
);
|
|
var_dump($dom->documentElement->childElementCount);
|
|
?>
|
|
--EXPECT--
|
|
int(4)
|
|
<mark>
|
|
</mark>
|
|
<mark>
|
|
</mark>
|
|
<mark>
|
|
</mark>
|
|
<element>
|
|
content
|
|
</element>
|
|
content
|
|
int(5)
|