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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
50 + 46 = ?
Subscribe to this entry?

 
 [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: Sat Jun 22 12:01:30 2024 UTC