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 #67068 (ReflectionFunction::getClosure returns something that doesn't report ..
Decoded Output download
--TEST--
Bug #67068 (ReflectionFunction::getClosure returns something that doesn't report as a closure)
--FILE--
<?php
class MyClass {
public function method() {}
}
$object = new MyClass;
$reflector = new \ReflectionMethod($object, 'method');
$closure = $reflector->getClosure($object);
$closureReflector = new \ReflectionFunction($closure);
var_dump($closureReflector->isClosure());
?>
--EXPECT--
bool(true)
Did this file decode correctly?
Original Code
--TEST--
Bug #67068 (ReflectionFunction::getClosure returns something that doesn't report as a closure)
--FILE--
<?php
class MyClass {
public function method() {}
}
$object = new MyClass;
$reflector = new \ReflectionMethod($object, 'method');
$closure = $reflector->getClosure($object);
$closureReflector = new \ReflectionFunction($closure);
var_dump($closureReflector->isClosure());
?>
--EXPECT--
bool(true)
Function Calls
None |
Stats
MD5 | 3ef3c3ba105d7225ca9998e2a38fe010 |
Eval Count | 0 |
Decode Time | 82 ms |