Bug #52627 [Opn->Csd]: Iterators & trigger_error causes crash
| From: | david at grudl dot com | Date: | Tue, 17 Aug 2010 16:36:44 +0000 |
| Subject: | Bug #52627 [Opn->Csd]: Iterators & trigger_error causes crash | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-153519@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52627&edit=1
ID: 52627
User updated by: david at grudl dot com
Reported by: david at grudl dot com
Summary: Iterators & trigger_error causes crash
-Status: Open
+Status: Closed
Type: Bug
Package: Reproducible crash
PHP Version: 5.3.3
Block user comment: N
New Comment:
Closing
Previous Comments:
------------------------------------------------------------------------
[2010-08-17 18:36:21] david at grudl dot com
I am sorry, this bug affects only 5.1.3 - 5.3.2 and is fixed in 5.3.3.
------------------------------------------------------------------------
[2010-08-17 18:16:12] aharvey@php.net
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 can't reproduce this on OS X or Linux. Besides needing a backtrace,
we'll also need to know what operating system you're running.
------------------------------------------------------------------------
[2010-08-17 18:11:32] david at grudl dot com
Description:
------------
Throwing any error in foreach causes PHP to crash since PHP 5.1.3
Test script:
---------------
class MyFilterIterator extends FilterIterator
{
function accept() { return TRUE; }
}
$iterator = new RecursiveArrayIterator(array(1));
$iterator = new RecursiveIteratorIterator($iterator);
$iterator = new MyFilterIterator($iterator);
foreach ($iterator as $component) {
trigger_error('User error', E_USER_ERROR);
// or trigger fatal error by calling undefined function xyz()
}
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52627&edit=1