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-- Read $ownerElement with null parent. --CREDITS-- Travis Pew # TestFest Atlanta 20..

Decoded Output download

--TEST--
Read $ownerElement with null parent.
--CREDITS--
Travis Pew
# TestFest Atlanta 2009-05-14
--EXTENSIONS--
dom
--FILE--
<?php

$document = new DOMDocument;
$root = $document->createElement('root');
$document->appendChild($root);
$attr = $root->setAttribute('category', 'books');
$document->removeChild($root);
$root = null;
try {
    var_dump($attr->ownerElement);
} catch (\Error $e) {
    echo get_class($e) . ': ' . $e->getMessage() . \PHP_EOL;
}
?>
--EXPECT--
Error: Couldn't fetch DOMAttr. Node no longer exists

Did this file decode correctly?

Original Code

--TEST--
Read $ownerElement with null parent.
--CREDITS--
Travis Pew
# TestFest Atlanta 2009-05-14
--EXTENSIONS--
dom
--FILE--
<?php

$document = new DOMDocument;
$root = $document->createElement('root');
$document->appendChild($root);
$attr = $root->setAttribute('category', 'books');
$document->removeChild($root);
$root = null;
try {
    var_dump($attr->ownerElement);
} catch (\Error $e) {
    echo get_class($e) . ': ' . $e->getMessage() . \PHP_EOL;
}
?>
--EXPECT--
Error: Couldn't fetch DOMAttr. Node no longer exists

Function Calls

None

Variables

None

Stats

MD5 37f491967819024a697b7a862d53ad39
Eval Count 0
Decode Time 77 ms