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_import() Importing and overriding function with a static variable --SKIPIF..
Decoded Output download
--TEST--
runkit_import() Importing and overriding function with a static variable
--SKIPIF--
<?php
if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip";
?>
--FILE--
<?php
function f() {
static $v = 0;
$v++;
echo $v, "
";
}
f();
runkit_import(dirname(__FILE__) . '/runkit_import_function_with_static_var.inc', RUNKIT_IMPORT_FUNCTIONS | RUNKIT_IMPORT_OVERRIDE);
f();
runkit_import(dirname(__FILE__) . '/runkit_import_function_with_static_var.inc', RUNKIT_IMPORT_FUNCTIONS | RUNKIT_IMPORT_OVERRIDE);
f();
?>
--EXPECT--
1
2
2
Did this file decode correctly?
Original Code
--TEST--
runkit_import() Importing and overriding function with a static variable
--SKIPIF--
<?php
if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip";
?>
--FILE--
<?php
function f() {
static $v = 0;
$v++;
echo $v, "\n";
}
f();
runkit_import(dirname(__FILE__) . '/runkit_import_function_with_static_var.inc', RUNKIT_IMPORT_FUNCTIONS | RUNKIT_IMPORT_OVERRIDE);
f();
runkit_import(dirname(__FILE__) . '/runkit_import_function_with_static_var.inc', RUNKIT_IMPORT_FUNCTIONS | RUNKIT_IMPORT_OVERRIDE);
f();
?>
--EXPECT--
1
2
2
Function Calls
extension_loaded | 1 |
Stats
MD5 | d82e4c7451bb8c8e8b0fa0161c2da2cb |
Eval Count | 0 |
Decode Time | 79 ms |