diff --git a/typo3/sysext/install/Classes/Service/SessionService.php b/typo3/sysext/install/Classes/Service/SessionService.php index 1d5257f073c78ac3e1e6f0fb6a96753d63dd1325..112a7bcb9d98ca895b9c08d84427fe89da31c4f2 100644 --- a/typo3/sysext/install/Classes/Service/SessionService.php +++ b/typo3/sysext/install/Classes/Service/SessionService.php @@ -389,7 +389,10 @@ class SessionService implements \TYPO3\CMS\Core\SingletonInterface if ($fd = fopen($sessionFile, 'rb')) { $lockres = flock($fd, LOCK_SH); if ($lockres) { - $content = fread($fd, filesize($sessionFile)); + $length = filesize($sessionFile); + if ($length > 0) { + $content = fread($fd, $length); + } flock($fd, LOCK_UN); } fclose($fd);