1--TEST-- 2Bug #67068 (ReflectionFunction::getClosure returns something that doesn't report as a closure) 3--FILE-- 4<?php 5class MyClass { 6 public function method() {} 7} 8 9$object = new MyClass; 10$reflector = new \ReflectionMethod($object, 'method'); 11$closure = $reflector->getClosure($object); 12 13$closureReflector = new \ReflectionFunction($closure); 14 15var_dump($closureReflector->isClosure()); 16?> 17--EXPECT-- 18bool(true)