Skip to content

Commit

Permalink
Update PHP versions in fclose/closedir known issue in README
Browse files Browse the repository at this point in the history
  • Loading branch information
elazar committed Jan 6, 2024
1 parent 261638a commit c3bf612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Released under the [MIT License](https://en.wikipedia.org/wiki/MIT_License).

## Known Issues

* If a file or directory handle is not explicitly closed after use (i.e. using [`fclose()`](https://www.php.net/fclose) or [`closedir()`](https://www.php.net/closedir) as appropriate), PHP will implicitly attempt to close it during [shutdown](https://www.php.net/manual/en/function.register-shutdown-function.php). This situation may trigger a segmentation fault in some environments. This issue has [been resolved](https://github.com/elazar/xdebug-date-stream-php-segfault) and should be available in near-future releases of 7.4, 8.0, and 8.1. In the interim, the easiest work-around is to ensure that file and directory handles are explicitly closed.
* If a file or directory handle is not explicitly closed after use (i.e. using [`fclose()`](https://www.php.net/fclose) or [`closedir()`](https://www.php.net/closedir) as appropriate), PHP will implicitly attempt to close it during [shutdown](https://www.php.net/manual/en/function.register-shutdown-function.php). This situation may trigger a segmentation fault in some environments. This issue has [been resolved](https://github.com/elazar/xdebug-date-stream-php-segfault) and is available in PHP 7.4.23, 8.0.10, and 8.1.0. In older versions, the easiest work-around is to ensure that file and directory handles are explicitly closed.

## Requirements

Expand Down

0 comments on commit c3bf612

Please sign in to comment.