HomePhorge

Fix PHP 8.1 strlen(null) error in PhabricatorFile::newChunkedFile()

Description

Fix PHP 8.1 strlen(null) error in PhabricatorFile::newChunkedFile()

Summary:
Fix PHP 8.1 strlen(null) error in PhabricatorFile::newChunkedFile().

Fixes T15499

Test Plan:
Added a unit test which replicated the fault, so you can test simply by 'arc unit'
Alternatively, see test in T15499

Reviewers: O1 Blessed Committers, avivey

Reviewed By: O1 Blessed Committers, avivey

Subscribers: speck, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15499

Differential Revision: https://we.phorge.it/D25352

Details

Provenance
Steve CampbellAuthored on Jul 17 2023, 5:25 AM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rPdbc101ca8ae1: Fix PHP 8.1 substr(null) in People > Activity Logs
Branches
Unknown
Tags
Unknown

Event Timeline