HomePhorge

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, 12:09 PM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rPd9badba14786: Give "bin/config" a friendlier error message if "local.json" is not writable
Branches
Unknown
Tags
Unknown

Event Timeline