HomePhorge

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

Description

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

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.

Reviewers: O1 Blessed Committers, chris

Reviewed By: O1 Blessed Committers, chris

Subscribers: speck, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15507

Differential Revision: https://we.phorge.it/D25318

Details

Provenance
Steve CampbellAuthored on Jun 30 2023, 5:17 AM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rP0a17287e08cd: Generalize references to PHP 5.x Debian/Ubuntu packages
Branches
Loading...
Tags
Loading...

Event Timeline