mirror of
https://github.com/php/php-src.git
synced 2024-12-04 23:34:25 +08:00
86fed7fac7
DOMComment::__construct() with constructor called twice. DOMDocumentFragment::appendXML() with unbound fragment. DOMDocumentFragment::appendXML() with unbalanced chunks. DOMDocumentFragment::__construct() called twice. DOMDocumentType: basic access to all properties. DOMDocumentType::name with invalid state. DOMDocumentType::entities with invalid state. DOMDocumentType::notations with invalid state. DOMDocumentType::publicId with invalid state. DOMDocumentType::publicId with empty value. DOMDocumentType::systemId with invalid state. DOMDocumentType::systemId with empty value. DOMDocumentType::internalSubset with invalid state.
20 lines
588 B
PHP
20 lines
588 B
PHP
--TEST--
|
|
DOMComment::__construct() with constructor called twice.
|
|
--CREDITS--
|
|
Eric Lee Stewart <ericleestewart@gmail.com>
|
|
# TestFest Atlanta 2009-05-25
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--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>
|