|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #81014 Update docs for php8
Submitted: 2021-05-05 21:39 UTC Modified: 2021-05-06 10:53 UTC
From: egger1991 at gmail dot com Assigned:
Status: Verified Package: SPL related
PHP Version: 8.0.5 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: egger1991 at gmail dot com
New email:
PHP Version: OS:


 [2021-05-05 21:39 UTC] egger1991 at gmail dot com
From manual page:
Update docs for php8:

SplFixedArray is now an IteratorAggregate and not an Iterator.
    SplFixedArray::rewind(), ::current(), ::key(), ::next(), and ::valid()
    have been removed. In their place, SplFixedArray::getIterator() has been
    added. Any code which uses explicit iteration over SplFixedArray must now
    obtain an Iterator through SplFixedArray::getIterator(). This means that
    SplFixedArray is now safe to use in nested loops.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-05-06 10:53 UTC]
-Status: Open +Status: Verified
 [2021-05-06 10:53 UTC]
While this is mentioned in the migration guide[1], it is not yet
documented in the manual proper.  I'm not quite sure how to do it,
so that the docs are still valid for PHP 7 and 8.

[1] <>
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Aug 02 23:01:23 2021 UTC