ID: 44546 Updated by: [EMAIL PROTECTED] Reported By: l dot alberton at quipo dot it -Status: Open +Status: Feedback Bug Type: SPL related Operating System: Windows PHP Version: 5.3CVS-2008-03-27 (snap) 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. Previous Comments: ------------------------------------------------------------------------ [2008-03-27 15:22:20] l dot alberton at quipo dot it 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 ------------------------------------------------------------------------ [2008-03-27 12:56:31] [EMAIL PROTECTED] 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
