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-- FR #79344 (xmlwriter_write_attribute_ns: $prefix should be nullable) --EXTENSIONS..

Decoded Output download

--TEST--
FR #79344 (xmlwriter_write_attribute_ns: $prefix should be nullable)
--EXTENSIONS--
xmlwriter
--FILE--
<?php
$writer = new XMLWriter;
$writer->openMemory();
$writer->setIndent(true);
$writer->startElement('foo');

$writer->writeAttributeNS(null, 'test1', null, 'test1');
$writer->startAttributeNS(null, 'test2', null);
$writer->text('test2');
$writer->endAttribute();

$writer->endElement();
echo $writer->outputMemory();
?>
--EXPECT--
<foo test1="test1" test2="test2"/>

Did this file decode correctly?

Original Code

--TEST--
FR #79344 (xmlwriter_write_attribute_ns: $prefix should be nullable)
--EXTENSIONS--
xmlwriter
--FILE--
<?php
$writer = new XMLWriter;
$writer->openMemory();
$writer->setIndent(true);
$writer->startElement('foo');

$writer->writeAttributeNS(null, 'test1', null, 'test1');
$writer->startAttributeNS(null, 'test2', null);
$writer->text('test2');
$writer->endAttribute();

$writer->endElement();
echo $writer->outputMemory();
?>
--EXPECT--
<foo test1="test1" test2="test2"/>

Function Calls

None

Variables

None

Stats

MD5 3b5e78c5dbbefba77cf25d42591bb6a0
Eval Count 0
Decode Time 92 ms