#49724 [Opn->Bgs]: Just a simple docu misstake

From: Date: Wed, 30 Sep 2009 16:35:53 +0000
Subject: #49724 [Opn->Bgs]: Just a simple docu misstake
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2849@lists.php.net to get a copy of this message
ID: 49724 Updated by: torben@php.net Reported By: stephan at strato-rz dot de -Status: Open +Status: Bogus Bug Type: Documentation problem PHP Version: Irrelevant New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Previous Comments: ------------------------------------------------------------------------ [2009-09-30 16:31:00] niel dot archer at blueyonder dot co dot uk Oops, typo. The plates are of course Last In, First Out. ------------------------------------------------------------------------ [2009-09-30 16:29:08] niel dot archer at blueyonder dot co dot uk The documentation is correct. A queue is like a single lane of traffic at a stop light. The first vehicle to arrive will be the First to pass the light when it changes. First In First Out. A stack is like a pile of plates waiting to be washed. you can keep putting them on the top, but when it's time to wash the next, it has to come from the top or your structure will fall ;-). Last In (On), Last Out(Off). See http://en.wikipedia.org/wiki/FIFO and http://en.wikipedia.org/wiki/LIFO_(computing) for more detailed info. ------------------------------------------------------------------------ [2009-09-30 15:40:43] stephan at strato-rz dot de Description: ------------ * SplDoublyLinkedList::IT_MODE_LIFO (Stack style) * SplDoublyLinkedList::IT_MODE_FIFO (Queue style) right is * SplDoublyLinkedList::IT_MODE_LIFO (Queue style) * SplDoublyLinkedList::IT_MODE_FIFO (Stack style) so a stack is anytime pushed and pop so it behave in a FIFO matter a unpriorised quene follow the LIFO way Reproduce code: --------------- --- From manual page: spldoublylinkedlist.setiteratormode#Parameters --- ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49724&edit=1

« previous php.doc.bugs (#2849) next »