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.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 28, 10:29
Unknown Object (File)
Sun, Apr 21, 14:24
Unknown Object (File)
Apr 1 2024, 02:14
Unknown Object (File)
Apr 1 2024, 02:14
Unknown Object (File)
Apr 1 2024, 02:13
Unknown Object (File)
Mar 31 2024, 03:10
Unknown Object (File)
Mar 27 2024, 16:13
Unknown Object (File)
Mar 25 2024, 17:00

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