mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +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
19 lines
559 B
PHP
19 lines
559 B
PHP
--TEST--
|
|
DOMComment::__construct() with constructor called twice.
|
|
--CREDITS--
|
|
Eric Lee Stewart <ericleestewart@gmail.com>
|
|
# TestFest Atlanta 2009-05-25
|
|
--EXTENSIONS--
|
|
dom
|
|
--FILE--
|
|
<?php
|
|
$dom = new DOMDocument('1.0', 'UTF-8');
|
|
$element = $dom->appendChild(new DOMElement('root'));
|
|
$comment = new DOMComment("This is the first comment.");
|
|
$comment->__construct("This is the second comment.");
|
|
$comment = $element->appendChild($comment);
|
|
print $dom->saveXML();
|
|
?>
|
|
--EXPECT--
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<root><!--This is the second comment.--></root>
|