mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
17 lines
301 B
Plaintext
17 lines
301 B
Plaintext
|
--TEST--
|
||
|
Bug #46849 (Cloning DOMDocument doesn't clone the properties).
|
||
|
--SKIPIF--
|
||
|
<?php require_once('skipif.inc'); ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$dom = new DOMDocument;
|
||
|
$dom->formatOutput = 1;
|
||
|
var_dump($dom->formatOutput);
|
||
|
|
||
|
$dom2 = clone $dom;
|
||
|
var_dump($dom2->formatOutput);
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
bool(true)
|
||
|
bool(true)
|