From 7195a5b3768e519b8f50d131a8c7041a0b57959e Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 13 Aug 2012 19:24:44 +0200 Subject: [PATCH] Forgot to add test --- .../generators/finally_uninterrupted.phpt | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Zend/tests/generators/finally_uninterrupted.phpt diff --git a/Zend/tests/generators/finally_uninterrupted.phpt b/Zend/tests/generators/finally_uninterrupted.phpt new file mode 100644 index 0000000000..64c94382aa --- /dev/null +++ b/Zend/tests/generators/finally_uninterrupted.phpt @@ -0,0 +1,28 @@ +--TEST-- +Use of finally in generator without interrupt +--FILE-- +rewind(); // force run + +?> +--EXPECTF-- +finally run + +Fatal error: Uncaught exception 'Exception' in %s:%d +Stack trace: +#0 [internal function]: gen() +#1 %s(%d): Generator->rewind() +#2 {main} + thrown in %s on line %d -- 2.50.1