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 #37076 (SimpleXML ignores .=) --EXTENSIONS-- simplexml --FILE-- <?php $xml = ..

Decoded Output download

--TEST--
Bug #37076 (SimpleXML ignores .=)
--EXTENSIONS--
simplexml
--FILE--
<?php
$xml = simplexml_load_string("<root><foo /></root>");
$xml->foo = "foo";
$xml->foo .= "bar";
print $xml->asXML();
?>
--EXPECT--
<?xml version="1.0"?>
<root><foo>foobar</foo></root>

Did this file decode correctly?

Original Code

--TEST--
Bug #37076 (SimpleXML ignores .=)
--EXTENSIONS--
simplexml
--FILE--
<?php
$xml = simplexml_load_string("<root><foo /></root>");
$xml->foo = "foo";
$xml->foo .= "bar";
print $xml->asXML();
?>
--EXPECT--
<?xml version="1.0"?>
<root><foo>foobar</foo></root>

Function Calls

None

Variables

None

Stats

MD5 0e04b17cb0637b8f34791be6475a0610
Eval Count 0
Decode Time 84 ms