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-- redefining methods with static variables --SKIPIF-- <?php if(!extension_loaded("r..
Decoded Output download
--TEST--
redefining methods with static variables
--SKIPIF--
<?php if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip"; ?>
--INI--
display_errors=on
--FILE--
<?php
if (!defined('E_STRICT')) {
define('E_STRICT', 0);
}
if (!defined('E_DEPRECATED')) {
define('E_DEPRECATED', 0);
}
ini_set('error_reporting', E_ALL & (~E_DEPRECATED) & (~E_STRICT));
class A {
function m() {
static $a = 0;
$a++;
return $a;
}
}
echo A::m(), "
";
runkit_method_copy('A', 'm1', 'A', 'm');
runkit_method_remove('A', 'm');
echo A::m1();
?>
--EXPECT--
1
2
Did this file decode correctly?
Original Code
--TEST--
redefining methods with static variables
--SKIPIF--
<?php if(!extension_loaded("runkit") || !RUNKIT_FEATURE_MANIPULATION) print "skip"; ?>
--INI--
display_errors=on
--FILE--
<?php
if (!defined('E_STRICT')) {
define('E_STRICT', 0);
}
if (!defined('E_DEPRECATED')) {
define('E_DEPRECATED', 0);
}
ini_set('error_reporting', E_ALL & (~E_DEPRECATED) & (~E_STRICT));
class A {
function m() {
static $a = 0;
$a++;
return $a;
}
}
echo A::m(), "\n";
runkit_method_copy('A', 'm1', 'A', 'm');
runkit_method_remove('A', 'm');
echo A::m1();
?>
--EXPECT--
1
2
Function Calls
extension_loaded | 1 |
Stats
MD5 | fe3096276189f487e72e7cb232855dbb |
Eval Count | 0 |
Decode Time | 87 ms |