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-- Check xsltprocessor::setparameter error handling with no-string --DESCRIPTION-- M..
Decoded Output download
--TEST--
Check xsltprocessor::setparameter error handling with no-string
--DESCRIPTION--
Memleak: http://bugs.php.net/bug.php?id=48221
--EXTENSIONS--
xsl
--FILE--
<?php
include __DIR__ .'/prepare.inc';
$proc->importStylesheet($xsl);
try {
$proc->setParameter('', array(4, 'abc'));
} catch (TypeError $exception) {
echo $exception->getMessage() . "
";
}
$proc->transformToXml($dom);
?>
--EXPECT--
XSLTProcessor::setParameter(): Argument #2 ($name) must contain only string keys
--CREDITS--
Christian Weiske, [email protected]
PHP Testfest Berlin 2009-05-09
Did this file decode correctly?
Original Code
--TEST--
Check xsltprocessor::setparameter error handling with no-string
--DESCRIPTION--
Memleak: http://bugs.php.net/bug.php?id=48221
--EXTENSIONS--
xsl
--FILE--
<?php
include __DIR__ .'/prepare.inc';
$proc->importStylesheet($xsl);
try {
$proc->setParameter('', array(4, 'abc'));
} catch (TypeError $exception) {
echo $exception->getMessage() . "\n";
}
$proc->transformToXml($dom);
?>
--EXPECT--
XSLTProcessor::setParameter(): Argument #2 ($name) must contain only string keys
--CREDITS--
Christian Weiske, [email protected]
PHP Testfest Berlin 2009-05-09
Function Calls
None |
Stats
MD5 | 6a13ee2e5a93ea9c45a58fceb0519fe4 |
Eval Count | 0 |
Decode Time | 91 ms |