Homestyx hydra
Diffusion hydra 101ce834b8ad

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, 8:17 AM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:0a17287e08cd: Generalize references to PHP 5.x Debian/Ubuntu packages
Branches
Unknown
Tags
Unknown

Event Timeline