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-- xmlwriter_write_dtd basic function tests --EXTENSIONS-- xmlwriter --FILE-- <?php ..

Decoded Output download

--TEST--
xmlwriter_write_dtd basic function tests
--EXTENSIONS--
xmlwriter
--FILE--
<?php

$xmlwriter = xmlwriter_open_memory();
var_dump(xmlwriter_write_dtd($xmlwriter, 'bla1', 'bla2', 'bla3', 'bla4'));
$output = xmlwriter_flush($xmlwriter, true);
print $output . PHP_EOL;

var_dump(xmlwriter_write_dtd($xmlwriter, '', '', ''));
$output = xmlwriter_flush($xmlwriter, true);
print $output;
?>
--CREDITS--
Koen Kuipers [email protected]
--EXPECT--
bool(true)
<!DOCTYPE bla1 PUBLIC "bla2" "bla3" [bla4]>
bool(false)

Did this file decode correctly?

Original Code

--TEST--
xmlwriter_write_dtd basic function tests
--EXTENSIONS--
xmlwriter
--FILE--
<?php

$xmlwriter = xmlwriter_open_memory();
var_dump(xmlwriter_write_dtd($xmlwriter, 'bla1', 'bla2', 'bla3', 'bla4'));
$output = xmlwriter_flush($xmlwriter, true);
print $output . PHP_EOL;

var_dump(xmlwriter_write_dtd($xmlwriter, '', '', ''));
$output = xmlwriter_flush($xmlwriter, true);
print $output;
?>
--CREDITS--
Koen Kuipers [email protected]
--EXPECT--
bool(true)
<!DOCTYPE bla1 PUBLIC "bla2" "bla3" [bla4]>
bool(false)

Function Calls

xmlwriter_open_memory 1

Variables

None

Stats

MD5 940f4c20584e79f6ba4b466769859772
Eval Count 0
Decode Time 95 ms