mirror of
https://github.com/php/php-src.git
synced 2026-04-21 23:18:13 +02: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
19 lines
416 B
PHP
19 lines
416 B
PHP
--TEST--
|
|
Bug #66502 (DOM document dangling reference)
|
|
--EXTENSIONS--
|
|
dom
|
|
--FILE--
|
|
<?php
|
|
$dom = new DOMDocument('1.0', 'UTF-8');
|
|
$element = $dom->appendChild(new DOMElement('root'));
|
|
$comment = new DOMComment("Comment 0");
|
|
$comment = $element->appendChild($comment);
|
|
|
|
$comment->__construct("Comment 1");
|
|
$comment->__construct("Comment 2");
|
|
$comment->__construct("Comment 3");
|
|
echo 'DONE', PHP_EOL;
|
|
?>
|
|
--EXPECT--
|
|
DONE
|