Bug #67497 [NEW]: eval with parse error causes segmentation fault in generator

From: Date: Mon, 23 Jun 2014 02:54:09 +0000
Subject: Bug #67497 [NEW]: eval with parse error causes segmentation fault in generator
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-186294@lists.php.net to get a copy of this message
From: ryan dot brothers at gmail dot com Operating system: Linux PHP version: 5.5.13 Package: Reproducible crash Bug Type: Bug Bug description:eval with parse error causes segmentation fault in generator Description: ------------ In the below script, the eval line has a parse error. The script continues as expected, but exits with a segmentation fault in the generator. Test script: --------------- <?php @eval('abc'); class t1 { public function test() { $values = array(1, 2); foreach ($values as $value) { yield $value; } } } $t1 = new t1; $values = $t1->test(); foreach ($values as $value) { } Expected result: ---------------- No output Actual result: -------------- Segmentation fault -- Edit bug report at https://bugs.php.net/bug.php?id=67497&edit=1 --

« previous php.bugs (#186294) next »