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
F2194753: D25318.1716093964.diff
Sat, May 18, 04:46
Unknown Object (File)
Wed, May 8, 11:21
Unknown Object (File)
Wed, May 8, 11:21
Unknown Object (File)
Wed, May 8, 10:11
Unknown Object (File)
Wed, May 8, 09:26
Unknown Object (File)
Tue, May 7, 23:06
Unknown Object (File)
Sun, May 5, 05:05
Unknown Object (File)
Sun, Apr 28, 10:29

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