#44546 [Fbk->Opn]: crash with SplHeap::next()
| From: | l dot alberton at quipo dot it | Date: | Thu, 27 Mar 2008 15:22:21 +0000 |
| Subject: | #44546 [Fbk->Opn]: crash with SplHeap::next() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-123712@lists.php.net to get a copy of this message | ||
ID: 44546
User updated by: l dot alberton at quipo dot it
Reported By: l dot alberton at quipo dot it
-Status: Feedback
+Status: Open
Bug Type: SPL related
Operating System: Windows
PHP Version: 5.3CVS-2008-03-27 (snap)
New Comment:
I'm using the latest snapshot.
Etienne told me it works with Linux, but I can consistently reproduce
this bug on windows (I already experienced it in the 19/03 snapshot and
ever since, haven't checked before).
This is the error message in the Apache error.log file:
[notice] Parent: child process exited with status 3221225477 --
Restarting.
[notice] Apache/2.2.4 (Win32) PHP/5.3.0-dev configured -- resuming
normal operations
Previous Comments:
------------------------------------------------------------------------
[2008-03-27 12:56:31] johannes@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows (zip):
http://snaps.php.net/win32/php5.3-win32-latest.zip
For Windows (installer):
http://snaps.php.net/win32/php5.3-win32-installer-latest.msi
I get, as expected, "cb" as a outpout, please make sure your PHP is up
to date and describe what "crash" means.
------------------------------------------------------------------------
[2008-03-27 10:56:48] l dot alberton at quipo dot it
Description:
------------
I was trying the latest SPL features, but every time I call the next()
method of a SplHeap object (SplMaxHeap, SplMinHeap, SplPriorityQueue), I
get a crash.
Reproduce code:
---------------
$heap = new SplMaxHeap();
$heap->insert('a');
$heap->insert('b');
$heap->insert('c');
$heap->rewind();
echo $heap->current();
$heap->next(); //crash
echo $heap->current();
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44546&edit=1