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
F3300464: D25318.1743039874.diff
Wed, Mar 26, 01:44
F3293319: D25318.1742911228.diff
Mon, Mar 24, 14:00
F3290791: D25318.1742872840.diff
Mon, Mar 24, 03:20
F3290774: D25318.1742872180.diff
Mon, Mar 24, 03:09
F3225012: D25318.1742090145.diff
Sat, Mar 15, 01:55
F2993330: D25318.1740280036.diff
Feb 22 2025, 03:07
F2993329: D25318.1740280034.diff
Feb 22 2025, 03:07
F2993079: D25318.1740270128.diff
Feb 22 2025, 00:22

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