diff options
author | Nikita Popov <nikic@php.net> | 2015-05-12 15:08:12 +0200 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2015-05-12 15:08:12 +0200 |
commit | e1cb22a23e881d13ddf80a90f1b0bf2d37913f75 (patch) | |
tree | 9c09f4643aa6a118f3fb2944a80920d84200317b /Zend/tests | |
parent | 33594b78ec533127282a542d1e78b62df9e2dd4f (diff) | |
download | php-git-e1cb22a23e881d13ddf80a90f1b0bf2d37913f75.tar.gz |
Fix bug #69599
Diffstat (limited to 'Zend/tests')
-rw-r--r-- | Zend/tests/bug69599.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Zend/tests/bug69599.phpt b/Zend/tests/bug69599.phpt new file mode 100644 index 0000000000..fa8eaa3db4 --- /dev/null +++ b/Zend/tests/bug69599.phpt @@ -0,0 +1,21 @@ +--TEST-- +Bug #69599: Strange generator+exception+variadic crash +--FILE-- +<?php + +function crash() { + sin(...[0]); + throw new \Exception(); + yield; +} + +iterator_to_array(crash()); + +?> +--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 |