diff --git a/Zend/tests/bug69599.phpt b/Zend/tests/bug69599.phpt new file mode 100644 index 00000000000..fa8eaa3db41 --- /dev/null +++ b/Zend/tests/bug69599.phpt @@ -0,0 +1,21 @@ +--TEST-- +Bug #69599: Strange generator+exception+variadic crash +--FILE-- + +--EXPECTF-- +Fatal error: Uncaught exception 'Exception' in %s:%d +Stack trace: +#0 [internal function]: crash() +#1 %s(%d): iterator_to_array(Object(Generator)) +#2 {main} + thrown in %s on line %d