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-- XSLTProcessor::importStylesheet() - Test with invalid stylesheet --EXTENSIONS-- x..
Decoded Output download
--TEST--
XSLTProcessor::importStylesheet() - Test with invalid stylesheet
--EXTENSIONS--
xsl
--FILE--
<?php
$xslt = new XSLTProcessor();
$dummy = new stdClass();
try {
var_dump($xslt->importStylesheet($dummy));
} catch (ValueError $e) {
echo $e->getMessage(), "
";
}
?>
--EXPECT--
XSLTProcessor::importStylesheet(): Argument #1 ($stylesheet) must be a valid XML node
Did this file decode correctly?
Original Code
--TEST--
XSLTProcessor::importStylesheet() - Test with invalid stylesheet
--EXTENSIONS--
xsl
--FILE--
<?php
$xslt = new XSLTProcessor();
$dummy = new stdClass();
try {
var_dump($xslt->importStylesheet($dummy));
} catch (ValueError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
XSLTProcessor::importStylesheet(): Argument #1 ($stylesheet) must be a valid XML node
Function Calls
None |
Stats
MD5 | 405b4dc8910bd1b22a498ef810a08e3c |
Eval Count | 0 |
Decode Time | 100 ms |