diff --git a/Zend/tests/bug64979.phpt b/Zend/tests/bug64979.phpt new file mode 100644 index 0000000000000..55deeae26bfe6 --- /dev/null +++ b/Zend/tests/bug64979.phpt @@ -0,0 +1,30 @@ +--TEST-- +Bug #64578 (Closures with static variables can be generators) +--FILE-- + +--EXPECT-- +int(1) +int(2) +int(1) \ No newline at end of file diff --git a/Zend/tests/closure_047.phpt b/Zend/tests/closure_047.phpt new file mode 100644 index 0000000000000..2377bef6b7e39 --- /dev/null +++ b/Zend/tests/closure_047.phpt @@ -0,0 +1,26 @@ +--TEST-- +Closure 047: Use in preg_replace_callback() using variables by reference +--FILE-- + +--EXPECT-- +a=0 +a=0, b=1 +a=0, b=1, c=2 +Done diff --git a/Zend/tests/closure_048.phpt b/Zend/tests/closure_048.phpt new file mode 100644 index 0000000000000..40f2e2fbac8f7 --- /dev/null +++ b/Zend/tests/closure_048.phpt @@ -0,0 +1,26 @@ +--TEST-- +Closure 048: Use in preg_replace_callback() using variables by reference +--FILE-- + +--EXPECT-- +a=0 +a=0, b=1 +a=0, b=1, c=2 +Done