Skip to content

Conversation

@jefft
Copy link
Contributor

@jefft jefft commented Oct 17, 2025

Fixes #1336

public static function init($mode = '')
{
if (ifdef('DB_DSN')) {
$GLOBALS['db'] = new JethroDB(DB_DSN, DB_USERNAME, ifdef('DB_PASSWORD', ifdef('DB_PASSWORD', null)));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$GLOBALS['db'] = new JethroDB(DB_DSN, DB_USERNAME, ifdef('DB_PASSWORD', ifdef('DB_PASSWORD', null)));
$GLOBALS['db'] = new JethroDB(DB_DSN, DB_USERNAME, ifdef('DB_PASSWORD'));

@jefft jefft closed this by deleting the head repository Oct 27, 2025
@jefft
Copy link
Contributor Author

jefft commented Oct 28, 2025

Replaced by #1345

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for connecting to database with unix sockets

2 participants