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-- assign to object leaks with ref --FILE-- <?php function &a($i) { $a = "str". ..
Decoded Output download
--TEST--
assign to object leaks with ref
--FILE--
<?php
function &a($i) {
$a = "str". $i ."ing";
return $a;
}
class A {
public function test() {
$this->a = a(1);
unset($this->a);
}
}
$a = new A;
$a->test();
$a->test();
echo "okey";
?>
--EXPECT--
okey
Did this file decode correctly?
Original Code
--TEST--
assign to object leaks with ref
--FILE--
<?php
function &a($i) {
$a = "str". $i ."ing";
return $a;
}
class A {
public function test() {
$this->a = a(1);
unset($this->a);
}
}
$a = new A;
$a->test();
$a->test();
echo "okey";
?>
--EXPECT--
okey
Function Calls
None |
Stats
MD5 | df2995d3da7b3eb63cb9c7cb2ef24492 |
Eval Count | 0 |
Decode Time | 119 ms |