php.net |  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
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: egger1991 at gmail dot com
New email:
PHP Version: OS:

 

 [2021-05-05 21:39 UTC] egger1991 at gmail dot com
Description:
------------
---
From manual page: https://php.net/splfixedarray.rewind
---
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-05-06 10:53 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2021-05-06 10:53 UTC] cmb@php.net
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] <https://www.php.net/manual/en/migration80.incompatible.php#migration80.incompatible.spl>
 [2022-12-03 05:39 UTC] fariba dot shami326 at gmail dot com
That's great. I was impressed by your writing. I am happy to see such a topic. Please come to my blog and read it.


(https://www.scoresense.me/)php.net
 [2022-12-14 05:45 UTC] sheyda dot babi5161 at gmail dot com
Bumped into your thread. ok  for creating it. (https://www.myfortiva.net/)github.com
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 19 07:01:30 2024 UTC