Allow fatal error on PHP 8.0 in LocalStream::stream_open() for fopen()

Created on 26 October 2020, about 4 years ago
Updated 23 January 2024, 10 months ago

Problem/Motivation

Follow-up to #3177541-17: stream_open() needs to cope with a failure in \Drupal\Core\StreamWrapper\LocalStream::getLocalPath() better β†’
When $path is empty the ($options & STREAM_REPORT_ERRORS) prevents fatal error on PHP 8.0 and keeps the method BC throwing warning.
With PHP 8.0 as minimally required version opening file with empty path should be fatal error

Steps to reproduce

Proposed resolution

throw additionally deprecation message pointing that in D10 this will be fatal

Remaining tasks

agree/patch/review/commit

User interface changes

no

API changes

the method could throw fatal error

Data model changes

no

Release notes snippet

no

πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated about 6 hours ago

Created by

πŸ‡«πŸ‡·France andypost

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024