Page MenuHomePhorge

Fix PHP 8.1 strlen() error when database replication Seconds_Behind_Master is NULL
ClosedPublic

Authored by Sten on Jun 30 2023, 12:43.

Details

Summary

When MySQL database replication is configured, but not running, the slave status Seconds_Behind_Master is NULL.
When this value is passed to strlen() an error is thrown.

Fixes T15507

Test Plan
  • Configure database replication such that Seconds_Behind_Master is NULL
  • Restart php-fpm
  • Go to Phorge web site.

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable