Homestyx hydra
Diffusion hydra f8eec38c9419

When "mysqli->real_connect()" fails without setting an error code, recover more…

Description

When "mysqli->real_connect()" fails without setting an error code, recover more gracefully

Summary: Depends on D20779. Ref T13403. Bad parameters may cause this call to fail without setting an error code; if it does, catch the issue and go down the normal connection error pathway.

Test Plan:

  • With "mysql.port" set to "quack", ran bin/storage probe.
  • Before: wild mess of warnings as the code continued below and failed when trying to interact with the connection.
  • After: clean connection failure with a useful error message.

Maniphest Tasks: T13403

Differential Revision: https://secure.phabricator.com/D20780

Details

Provenance
epriestleyAuthored on Sep 3 2019, 3:09 PM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:d9badba14786: Give "bin/config" a friendlier error message if "local.json" is not writable
Branches
Unknown
Tags
Unknown

Event Timeline