Fix deprecated readdir() without argument for PHP 8.5

Created on 10 August 2025, 5 days ago

Problem/Motivation

The readdir(), rewinddir(), and closedir() functions accept null as the value for the $dir_handle, in which case it will used the previously opened directory stream opened with opendir().

Steps to reproduce

- https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_passing_null_to_...
- https://github.com/php/php-src/commit/dc0962c2439d6140c918f132e2a24129c0...

Proposed resolution

use variable to pass directory handle

Remaining tasks

- MR
- wait for beta
- review/commit

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

base system

Created by

πŸ‡«πŸ‡·France andypost

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024