From dbc0a80b23e222801aa3f26ca56dfb52290c986d Mon Sep 17 00:00:00 2001 From: Danack Date: Tue, 13 Jan 2015 01:24:19 +0000 Subject: Added test and possible fix for https://bugs.php.net/bug.php?id=67068 --- ext/reflection/tests/bug67068.phpt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ext/reflection/tests/bug67068.phpt (limited to 'ext/reflection') diff --git a/ext/reflection/tests/bug67068.phpt b/ext/reflection/tests/bug67068.phpt new file mode 100644 index 0000000000..35c1b1674f --- /dev/null +++ b/ext/reflection/tests/bug67068.phpt @@ -0,0 +1,18 @@ +--TEST-- +Bug #67068 (ReflectionFunction::getClosure returns something that doesn't report as a closure) +--FILE-- +getClosure($object); + +$closureReflector = new \ReflectionFunction($closure); + +var_dump($closureReflector->isClosure()); +?> +--EXPECT-- +bool(true) \ No newline at end of file -- cgit v1.2.1