Closed webbj74 closed 10 years ago
:sparkles:
This looks great. My initial thought was to pick one method and stick with it, however as implemented I think that the approach is definitely sound and even more robust.
Thanks for the contributions, @jacobbednarz and @webbj74!
This PR builds off of the work @jacobbednarz provided in #58. Because Acquia Hosting inserts keys into $_ENV directly (when php_sapi() == CLI), getenv does not reliably get Acquia Hosting special vars. I added a wrapper to check getenv, $_ENV, and $_SERVER for a key and return its value.