-
Notifications
You must be signed in to change notification settings - Fork 6
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
Possible switch from getenv() to $_ENV() #3
Comments
Interesting. |
Sorry for the first reply - I didn't notice the need for adding the Env::init();
Env::$options = Env::USE_ENV_ARRAY; After adding it it does work! Clever solution, Oscar 👏 Edit just in case: Env::init();
Env::$options |= Env::USE_ENV_ARRAY; |
Great. Env::$options |= Env::USE_ENV_ARRAY; |
I was kind of hoping you'll correct me if needed - thank you again. Would you think it is better to include it before or after the |
ok, new version released. Enjoy :) |
I'm currently using a shared webhost and as it turns out, they have
putenv()
(and consequentlygetenv()
) disabled. And since your library is usinggetenv()
, it doesn't work in that setup.Since I might not be the only one to ever run into this issue, I wanted to ask whether your library could be updated to use
$_ENV[]
instead? I'm not very PHP-savvy, so, I might be asking the impossible here...Thank you for your consideration.
(Link to related issue I posted in roots/bedrock.)
The text was updated successfully, but these errors were encountered: