|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2015-02-01 07:20 UTC] stas@php.net
 
-Status:      Open
+Status:      Closed
-Assigned To:
+Assigned To: stas
  [2015-02-01 07:20 UTC] stas@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 14:00:01 2025 UTC | 
Description: ------------ When you try to reflect a closure that was created using ReflectionFunction/Method::getClosure() the reflection objects doesn't say it's a closure. Test script: --------------- <?php class MyClass { public function method() {} } $object = new MyClass; $reflector = new \ReflectionMethod($object, 'method'); $closure = $reflector->getClosure($object); $closureReflector = new \ReflectionFunction($closure); //expected bool(true) - got false var_dump($closureReflector->isClosure());