Skip to content

Conversation

@bshaffer
Copy link
Contributor

No description provided.

@bshaffer
Copy link
Contributor Author

Merging so we can run jenkins tests

@bshaffer bshaffer merged commit 6320a96 into master Oct 27, 2016
@bshaffer bshaffer deleted the cloudsql-test-fix branch October 27, 2016 15:18
$username = getenv('MYSQL_USERNAME');
$password = getenv('MYSQL_PASSWORD');
if (!isset($dsn, $username) || false === $password) {
if (empty($dsn) || empty($username) || false === $password) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It's trivial, but why it only compares $password to false? Can it also be empty($password)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did this because, while not best practice, it is possible to have an empty password.

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.

2 participants