Fix null string error passed to realpath() in LocalStream

Created on 7 November 2022, over 2 years ago
Updated 27 June 2025, 8 days ago

Problem/Motivation

I'm not sure exactly what caused it but somehow a NULL path in LocalStream::getLocalPath was causing errors from realpath().

This is evident on php8.1 with the stricter arg passing.

Steps to reproduce

Unsure.

Proposed resolution

Patch supplied.

Remaining tasks

There seem to also be deprecations connected to realpath()...

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Closed: cannot reproduce

Version

11.0 🔥

Component

file system

Created by

🇬🇧United Kingdom rivimey

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

Comments & Activities

Not all content is available!

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

  • 🇮🇳India mohit_aghera Rajkot

    I came across this issue while doing Bugsmash triage.
    Thank you for reporting the issue.

    I am not able to reproduce the issue since there are no clear steps to reproduce.
    Considering it is not easily reproducible, I'm closing the issue.

    Please reopen again if you feel issue is happening.

Production build 0.71.5 2024