From: Nikita Popov Date: Mon, 13 Aug 2012 17:24:44 +0000 (+0200) Subject: Forgot to add test X-Git-Tag: php-5.5.0alpha1~20^2~24^2~24^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7195a5b3768e519b8f50d131a8c7041a0b57959e;p=php Forgot to add test --- 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