php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #49724 Just a simple docu misstake
Submitted: 2009-09-30 15:40 UTC Modified: 2009-09-30 16:35 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: stephan at strato-rz dot de Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2009-09-30 15:40 UTC] 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
---



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-09-30 16:29 UTC] 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 16:31 UTC] niel dot archer at blueyonder dot co dot uk
Oops, typo.
The plates are of course Last In, First Out.
 [2009-09-30 16:35 UTC] torben@php.net
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


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 01:00:01 2026 UTC