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_remove() function with ReflectionParameter --SKIPIF-- <?php if(!ext..

Decoded Output download

--TEST--
runkit_method_remove() function with ReflectionParameter
--SKIPIF--
<?php if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip"; ?>
--FILE--
<?php
class RunkitClass {
	function runkitMethod(RunkitClass $param) {
		echo "Runkit Method
";
	}
}

$obj = new RunkitClass();

$reflMethod = new ReflectionMethod('RunkitClass', 'runkitMethod');
$reflParam = $reflMethod->getParameters();
$reflParam = $reflParam[0];

runkit_method_remove('RunkitClass','runkitMethod');

var_dump($reflParam);
var_dump($reflParam->getDeclaringFunction());
?>
--EXPECTF--
object(ReflectionParameter)#%d (1) {
  ["name"]=>
  string(31) "__parameter_removed_by_runkit__"
}

Fatal error:%sInternal error: Failed to retrieve the reflection object in %s on line %d

Did this file decode correctly?

Original Code

--TEST--
runkit_method_remove() function with ReflectionParameter
--SKIPIF--
<?php if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip"; ?>
--FILE--
<?php
class RunkitClass {
	function runkitMethod(RunkitClass $param) {
		echo "Runkit Method\n";
	}
}

$obj = new RunkitClass();

$reflMethod = new ReflectionMethod('RunkitClass', 'runkitMethod');
$reflParam = $reflMethod->getParameters();
$reflParam = $reflParam[0];

runkit_method_remove('RunkitClass','runkitMethod');

var_dump($reflParam);
var_dump($reflParam->getDeclaringFunction());
?>
--EXPECTF--
object(ReflectionParameter)#%d (1) {
  ["name"]=>
  string(31) "__parameter_removed_by_runkit__"
}

Fatal error:%sInternal error: Failed to retrieve the reflection object in %s on line %d

Function Calls

extension_loaded 1

Variables

None

Stats

MD5 a572f3ba0905896abbeabfc5e3616766
Eval Count 0
Decode Time 126 ms