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-- SPL: spl_autoload() and object freed --INI-- include_path=. --FILE-- <?php class ..
Decoded Output download
--TEST--
SPL: spl_autoload() and object freed
--INI--
include_path=.
--FILE--
<?php
class A {
public $var = 1;
public function autoload() {
echo "var:".$this->var."
";
}
public function __destruct() {
echo "__destruct__
";
}
}
$a = new A;
$a->var = 2;
spl_autoload_register(array($a, 'autoload'));
unset($a);
var_dump(class_exists("C", true));
?>
===DONE===
--EXPECT--
var:2
bool(false)
===DONE===
__destruct__
Did this file decode correctly?
Original Code
--TEST--
SPL: spl_autoload() and object freed
--INI--
include_path=.
--FILE--
<?php
class A {
public $var = 1;
public function autoload() {
echo "var:".$this->var."\n";
}
public function __destruct() {
echo "__destruct__\n";
}
}
$a = new A;
$a->var = 2;
spl_autoload_register(array($a, 'autoload'));
unset($a);
var_dump(class_exists("C", true));
?>
===DONE===
--EXPECT--
var:2
bool(false)
===DONE===
__destruct__
Function Calls
None |
Stats
MD5 | 0741e9215faf2abb61c406e8e7a7d95b |
Eval Count | 0 |
Decode Time | 85 ms |