Project

General

Profile

Actions

Bug #103777

open

\TYPO3\CMS\Core\Resource\AbstractFile::getSize returns null for files with a size of 0 byte

Added by Wolfgang Klinger 3 months ago. Updated 1 day ago.

Status:
Under Review
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2024-05-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:

Description

\TYPO3\CMS\Core\Resource\AbstractFile::getSize
returns `null` (which leads to problems up in the chain of callers) even though the file is valid, and the file size is there, it's just coincidentally 0 bytes (happens).
I see this as a bug.

        return $size ? (int)$size : null;

(check with `isset` should be a simple solution here)


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #103949: ProcessedFile::getSize returns 0ClosedGeorg Ringer2024-05-29

Actions
Actions

Also available in: Atom PDF