Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #46849 (Cloning DOMDocument doesn't clone the properties). --EXTENSIONS-- dom..

Decoded Output download

--TEST--
Bug #46849 (Cloning DOMDocument doesn't clone the properties).
--EXTENSIONS--
dom
--FILE--
<?php
$dom = new DOMDocument;
$dom->formatOutput = 1;
var_dump($dom->formatOutput);

$dom2 = clone $dom;
var_dump($dom2->formatOutput);
?>
--EXPECT--
bool(true)
bool(true)

Did this file decode correctly?

Original Code

--TEST--
Bug #46849 (Cloning DOMDocument doesn't clone the properties).
--EXTENSIONS--
dom
--FILE--
<?php
$dom = new DOMDocument;
$dom->formatOutput = 1;
var_dump($dom->formatOutput);

$dom2 = clone $dom;
var_dump($dom2->formatOutput);
?>
--EXPECT--
bool(true)
bool(true)

Function Calls

None

Variables

None

Stats

MD5 8dc685cdcf7f538c73c7edb07299c506
Eval Count 0
Decode Time 91 ms