- πΊπΈUnited States csmdgl
This is not a new bug and has long existed without causing problems for us. It has become apparent by moving to PHP 8.
When enabling a module via drush, this warning is produced:
Undefined array key "php" environment.inc:790 [warning]
By itself, we were tolerating and ignoring the bug. But when enabling a module via the UI, this produces thirteen pages of warnings of these two types:
Warning: Undefined array key "php" in _system_modules_build_row() (line 1027 of /var/www/html/docroot/modules/system/system.admin.inc).
and
Deprecated function: version_compare(): Passing null to parameter #2 ($version2) of type string is deprecated in _system_modules_build_row() (line 1027 of /var/www/awards.practicegreenhealth.org/pgh-awards/docroot/modules/system/system.admin.inc).
Features is corrupting the system module cache with this line in
features_get_info()
:
unset($row->info['php']);
Patch attached.
- Status changed to RTBC
4 days ago 3:12pm 19 February 2025 - π³π΄Norway steinmb
For what it's worth, confirm that this two liner addresses the problem.