Skip to content

Allow for PHONGO-SERVERS.json in ~ (and fix a test case name) #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 20, 2015

Conversation

derickr
Copy link
Contributor

@derickr derickr commented Aug 19, 2015

No description provided.


$FILENAME = sys_get_temp_dir() . "/PHONGO-SERVERS.json";
if (file_exists("{$_SERVER['HOME']}/PHONGO-SERVERS.json")) {
$FILENAME = "{$_SERVER['HOME']}/PHONGO-SERVERS.json";
Copy link
Contributor

Choose a reason for hiding this comment

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

That feels a littlebit dodge. Like the idea though
How about environment variable? PHONGO_SERVERS=/path/to/PHONGO-SERVERS.json

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pushed a new commit for that.

@derickr derickr force-pushed the test-name-and-servers branch from 0ac19ff to 1b2f920 Compare August 20, 2015 10:10
bjori added a commit to bjori/mongo-php-driver that referenced this pull request Aug 20, 2015
Allow for PHONGO-SERVERS.json in ~ (and fix a test case name)

* derickr/test-name-and-servers:
  Do this with an env var instead
  Allow for PHONGO-SERVERS.json in ~ (and fix a test case name)
@bjori bjori merged commit 1b2f920 into mongodb:master Aug 20, 2015
@derickr derickr deleted the test-name-and-servers branch September 2, 2015 17:21
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