Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Commit

Permalink
MYSQL_PORT_3306_TCP_ADDR can't be deprecated actually yet while lin…
Browse files Browse the repository at this point in the history
…ks are alive
  • Loading branch information
nazar-pc committed Dec 22, 2015
1 parent 1e5b12a commit 212763d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions config.inc.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
include 'config.sample.inc.php';

// TODO: MYSQL_PORT_3306_TCP_ADDR environmental variable is deprecated now and will be removed in future!
if (isset($_ENV['MYSQL_PORT_3306_TCP_ADDR'])) {
if (!isset($_ENV['MYSQL_HOST']) && isset($_ENV['MYSQL_PORT_3306_TCP_ADDR'])) {
$_ENV['MYSQL_HOST'] = $_ENV['MYSQL_PORT_3306_TCP_ADDR'];
}

Expand Down

0 comments on commit 212763d

Please sign in to comment.