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-- runkit_method_add() function with closure and flags --SKIPIF-- <?php if(!extensi..
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?
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
Function Calls
extension_loaded | 1 |
Stats
MD5 | d084a7abda25a956c191ce99c96f56b9 |
Eval Count | 0 |
Decode Time | 105 ms |