Skip to content

Commit aa5f61b

Browse files
Copilotswissspidy
andcommitted
Improve documentation for is_mariadb() helper method
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
1 parent aef1158 commit aa5f61b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Context/FeatureContext.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,6 +1168,11 @@ private function set_cache_dir(): void {
11681168
/**
11691169
* Check if the given binary path is for MariaDB.
11701170
*
1171+
* Checks if the binary name contains 'mariadb' to distinguish MariaDB from MySQL.
1172+
* This is a simple heuristic that works for standard installations where the
1173+
* binary is named 'mariadb' or 'mariadb-dump'. Custom builds with non-standard
1174+
* naming may not be detected correctly.
1175+
*
11711176
* @param string $binary_path Path to the database binary.
11721177
* @return bool True if MariaDB, false otherwise.
11731178
*/

0 commit comments

Comments
 (0)