Skip to content

Commit c6b986b

Browse files
committed
Merge branch 'PHP-5.6'
Conflicts: Zend/zend_vm_def.h Zend/zend_vm_execute.h
2 parents 0586702 + e1cb22a commit c6b986b

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Zend/tests/bug69599.phpt

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
--TEST--
2+
Bug #69599: Strange generator+exception+variadic crash
3+
--FILE--
4+
<?php
5+
6+
function crash() {
7+
sin(...[0]);
8+
throw new \Exception();
9+
yield;
10+
}
11+
12+
iterator_to_array(crash());
13+
14+
?>
15+
--EXPECTF--
16+
Fatal error: Uncaught exception 'Exception' in %s:%d
17+
Stack trace:
18+
#0 [internal function]: crash()
19+
#1 %s(%d): iterator_to_array(Object(Generator))
20+
#2 {main}
21+
thrown in %s on line %d

0 commit comments

Comments
 (0)