mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
Merge branch 'PHP-5.6'
Conflicts: Zend/zend_vm_def.h Zend/zend_vm_execute.h
This commit is contained in:
commit
c6b986b4e7
21
Zend/tests/bug69599.phpt
Normal file
21
Zend/tests/bug69599.phpt
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user