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-- ReflectionMethod::returnsReference() --FILE-- <?php class TestClass { public..
Decoded Output download
--TEST--
ReflectionMethod::returnsReference()
--FILE--
<?php
class TestClass {
public function &foo() {
}
private function bar() {
}
}
$methodInfo = new ReflectionMethod('TestClass::foo');
var_dump($methodInfo->returnsReference());
$methodInfo = new ReflectionMethod('TestClass::bar');
var_dump($methodInfo->returnsReference());
?>
--EXPECT--
bool(true)
bool(false)
Did this file decode correctly?
Original Code
--TEST--
ReflectionMethod::returnsReference()
--FILE--
<?php
class TestClass {
public function &foo() {
}
private function bar() {
}
}
$methodInfo = new ReflectionMethod('TestClass::foo');
var_dump($methodInfo->returnsReference());
$methodInfo = new ReflectionMethod('TestClass::bar');
var_dump($methodInfo->returnsReference());
?>
--EXPECT--
bool(true)
bool(false)
Function Calls
None |
Stats
MD5 | eee0a69c6994691ca1664c66dd6068b9 |
Eval Count | 0 |
Decode Time | 95 ms |