Add hook_requirements check that PHP storage is writeable

Created on 30 April 2024, 5 months ago

Problem/Motivation

πŸ“Œ Deprecate trigger_error in FileStorage::createDirectory() to allow replacing calls to :::expectWarning*() in Drupal\Tests\Component\PhpStorage\FileStorageTest RTBC previously raised a PHP language warning if creating a directory failed, but there are other ways that PHP storage could fail (disk full, permissions, etc) when the directory exists, and these currently fail silently because TwigPhpStorageCache::write() does not check the return code of FileStorage::save().

Steps to reproduce

Proposed resolution

Add a hook_requirements() that writes a dummy file to PHP storage and ensures there is no error.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated 21 minutes ago

Created by

πŸ‡¬πŸ‡§United Kingdom longwave UK

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

Comments & Activities

Production build 0.71.5 2024