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-- Bug 69124: Method name must be as string (invalid error message when using refere..
Decoded Output download
--TEST--
Bug 69124: Method name must be as string (invalid error message when using reference to a string)
--FILE--
<?php
class Foo {
public function bar() {
print "Success
";
}
}
function test(&$instance, &$method) {
$instance->{$method}();
}
$instance = new Foo;
$method = "bar";
test($instance, $method);
?>
--EXPECT--
Success
Did this file decode correctly?
Original Code
--TEST--
Bug 69124: Method name must be as string (invalid error message when using reference to a string)
--FILE--
<?php
class Foo {
public function bar() {
print "Success\n";
}
}
function test(&$instance, &$method) {
$instance->{$method}();
}
$instance = new Foo;
$method = "bar";
test($instance, $method);
?>
--EXPECT--
Success
Function Calls
None |
Stats
MD5 | 6f3ff7affbcfd127acf74451b114542f |
Eval Count | 0 |
Decode Time | 83 ms |