mirror of
https://github.com/php/php-src.git
synced 2024-10-01 14:56:10 +00:00
21 lines
338 B
Plaintext
21 lines
338 B
Plaintext
|
--TEST--
|
||
|
Bug #65161: Generator + autoload + syntax error = segfault
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
function autoload() {
|
||
|
foo();
|
||
|
}
|
||
|
spl_autoload_register('autoload');
|
||
|
|
||
|
function testGenerator() {
|
||
|
new SyntaxError('param');
|
||
|
yield;
|
||
|
}
|
||
|
|
||
|
foreach (testGenerator() as $i);
|
||
|
|
||
|
?>
|
||
|
--EXPECTF--
|
||
|
Fatal error: Call to undefined function foo() in %s on line %d
|