From 47678c06c65be8cd844b1d6ee61f7645e0f9bfcf Mon Sep 17 00:00:00 2001 From: Marcel Araujo Date: Fri, 21 Jun 2013 18:25:51 -0300 Subject: [PATCH] https://bugs.php.net/bug.php?id=64979 --- .../generator_closure_static_variable.phpt | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Zend/tests/generators/generator_closure_static_variable.phpt diff --git a/Zend/tests/generators/generator_closure_static_variable.phpt b/Zend/tests/generators/generator_closure_static_variable.phpt new file mode 100644 index 0000000000..01d7240788 --- /dev/null +++ b/Zend/tests/generators/generator_closure_static_variable.phpt @@ -0,0 +1,30 @@ +--TEST-- +Closures with static variables can be generators +--FILE-- + +--EXPECT-- +int(1) +int(2) +int(1) \ No newline at end of file -- 2.40.0