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-- SimpleXML [profile]: Accessing a namespaced element without a namespace --EXTENSI..
Decoded Output download
--TEST--
SimpleXML [profile]: Accessing a namespaced element without a namespace
--EXTENSIONS--
simplexml
--FILE--
<?php
error_reporting(E_ALL & ~E_NOTICE);
$root = simplexml_load_string('<?xml version="1.0"?>
<root xmlns:reserved="reserved-ns">
<reserved:child>Hello</reserved:child>
</root>
');
echo $root->child;
echo "
---Done---
";
?>
--EXPECT--
---Done---
Did this file decode correctly?
Original Code
--TEST--
SimpleXML [profile]: Accessing a namespaced element without a namespace
--EXTENSIONS--
simplexml
--FILE--
<?php
error_reporting(E_ALL & ~E_NOTICE);
$root = simplexml_load_string('<?xml version="1.0"?>
<root xmlns:reserved="reserved-ns">
<reserved:child>Hello</reserved:child>
</root>
');
echo $root->child;
echo "\n---Done---\n";
?>
--EXPECT--
---Done---
Function Calls
None |
Stats
MD5 | b7124b81b3577135e53f82f54a3d1a7f |
Eval Count | 0 |
Decode Time | 67 ms |