Bug #67497 [Opn->Fbk]: eval with parse error causes segmentation fault in generator
| From: | aharvey@php.net | Date: | Mon, 23 Jun 2014 22:01:10 +0000 |
| Subject: | Bug #67497 [Opn->Fbk]: eval with parse error causes segmentation fault in generator | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-186309@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67497&edit=1
ID: 67497
Updated by: aharvey@php.net
Reported by: ryan dot brothers at gmail dot com
Summary: eval with parse error causes segmentation fault in
generator
-Status: Open
+Status: Feedback
Type: Bug
Package: Reproducible crash
Operating System: Linux
PHP Version: 5.5.13
Block user comment: N
Private report: N
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php
for Win32
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
I'm unable to reproduce this at present.
We may also need some more details on your environment: what distribution are you running, what
architecture, and how did you get PHP â did you compile it from source or install from a
package?
Previous Comments:
------------------------------------------------------------------------
[2014-06-23 02:54:06] ryan dot brothers at gmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=67497&edit=1