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:

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.


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to