Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 2.49 KB

UPSTREAM.md

File metadata and controls

40 lines (31 loc) · 2.49 KB

HyperDB upstream parity

LudicrousDB began as a distribution of Automattic's HyperDB database drop-in. The projects have since diverged, but HyperDB remains an important source of database routing and failover fixes.

The repositories do not have a usable shared Git merge base. HyperDB's current Git history begins with a 2021 import, while LudicrousDB's history begins in 2014. Upstream changes therefore need a behavioral review rather than a blind merge.

Review policy

For every new commit on HyperDB's trunk branch:

  1. Compare the changed behavior with the current LudicrousDB implementation.
  2. Classify it as already present, safe to port, intentionally divergent, obsolete, or requiring a compatibility decision.
  3. Add characterization coverage before changing routing, connection, failover, replication-lag, or query behavior.
  4. Preserve LudicrousDB's published PHP 7.4 and WordPress 6.4 minimums.
  5. Prefer LudicrousDB's modern MySQLi, object-cache, testing, and CI designs. Do not restore HyperDB's obsolete mysql_* compatibility layer.

Audited baseline

Last reviewed upstream commit: 6fd480d (July 27, 2026).

Upstream work LudicrousDB disposition
Preserve query errors and guard FOUND_ROWS() after a failed query (978fbf9) Already present through LudicrousDB's connection-error and FOUND_ROWS() fixes.
Allow PHP 8.2 dynamic properties (e23ea7b) Intentionally superseded. LudicrousDB declares the compatibility properties instead of allowing arbitrary dynamic properties.
Replace the deprecated mysqli_ping() path, culminating in an active DO 1 probe (6f36eb5) Ported in LudicrousDB form. Failed probes remove the stale handle before reconnecting.
Disconnect a handle after MySQL server-gone errors (8a51769) Superseded upstream by the active-probe change. LudicrousDB performs stale-handle removal in its connection check.

Future reviews should update the baseline commit and append any disposition that is not self-evident from the LudicrousDB commit history.