Decoded Output
Download--TEST--
runkit_method_add() function with closure and flags
--SKIPIF--
<?php
if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip";
if(version_compare(PHP_VERSION, '5.3.0', '<')) print "skip";
?>
--INI--
display_errors=on
--FILE--
<?php
class runkit_class {
}
runkit_method_add('runkit_class','runkit_method',function() {});
runkit_method_add('runkit_class','runkitMethod',function() {}, RUNKIT_ACC_PRIVATE);
runkit_method_add('runkit_class','runkitMethod1',function () {}, RUNKIT_ACC_STATIC, 'new doc_comment2');
$r1 = new ReflectionMethod('runkit_class', 'runkit_method');
echo $r1->getDocComment(), "
";
$r2 = new ReflectionMethod('runkit_class', 'runkitMethod');
echo $r2->getDocComment(), "
";
$r3 = new ReflectionMethod('runkit_class', 'runkitMethod1');
echo $r3->getDocComment(), "
";
echo $r2->isPrivate(), "
";
echo $r3->isStatic();
?>
--EXPECT--
new doc_comment2
1
1
Did this file decode correctly?
How would you describe this file?
Thank you for your feedback! This will help us detect malicious PHP files more accurately in the future.
Function Calls
| extension_loaded | 1 |
|---|
Variables
None
Stats
| MD5 | d084a7abda25a956 |
|---|---|
| Eval Count | 0 |
| Decode Time | 105 ms |
Original Code
--TEST--
runkit_method_add() function with closure and flags
--SKIPIF--
<?php
if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip";
if(version_compare(PHP_VERSION, '5.3.0', '<')) print "skip";
?>
--INI--
display_errors=on
--FILE--
<?php
class runkit_class {
}
runkit_method_add('runkit_class','runkit_method',function() {});
runkit_method_add('runkit_class','runkitMethod',function() {}, RUNKIT_ACC_PRIVATE);
runkit_method_add('runkit_class','runkitMethod1',function () {}, RUNKIT_ACC_STATIC, 'new doc_comment2');
$r1 = new ReflectionMethod('runkit_class', 'runkit_method');
echo $r1->getDocComment(), "\n";
$r2 = new ReflectionMethod('runkit_class', 'runkitMethod');
echo $r2->getDocComment(), "\n";
$r3 = new ReflectionMethod('runkit_class', 'runkitMethod1');
echo $r3->getDocComment(), "\n";
echo $r2->isPrivate(), "\n";
echo $r3->isStatic();
?>
--EXPECT--
new doc_comment2
1
1