Doc #62305 [Opn->Csd]: spl_autoload_register implements queue, docs say stack
Edit report at https://bugs.php.net/bug.php?id=62305&edit=1
ID: 62305
Updated by: requinix@php.net
Reported by: eric at wepay dot com
Summary: spl_autoload_register implements queue, docs say
stack
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: requinix
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2015-04-15 14:18:18] ppaisndud at gmail dot com
Believe this can be closed
------------------------------------------------------------------------
[2012-06-12 23:29:47] eric at wepay dot com
Description:
------------
---
From manual page: http://www.php.net/function.spl-autoload-register#refsect1-
function.spl-autoload-register-description
---
The documentation for spl_autoload_register repeatedly refers to the autoload
stack, yet the actual implementation appears to be in a queue (see
https://bugs.php.net/bug.php?id=42823). While an
optional third parameter was
added to the function allowing developers to implement either behavior (and
correctly describes it as a queue), the docs are inconsistent in this matter.
I recommend replacing all instances of "stack" with "queue" on the documentation
page.
Test script:
---------------
n/a, documentation problem
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=62305&edit=1
Thread (3 messages)