josegonzalez/php-dotenv

Not getting in getenv

Closed this issue · 8 comments

<?php
$loader = new josegonzalez\Dotenv\Loader(__DIR__ . '/.env');
// Parse the .env file
$loader->parse();
// Send the parsed .env file to the $_ENV variable
$loader->toEnv(true);
$loader->toServer(true);
echo ' ffv ' . getenv('HELLO');
var_dump($_ENV);

Used php's local server itself.

Interesting. Is that the case for the non-php server as well?

Yes confirm same with Apache.

Can you make a PR with failing tests? It looks like it works for $_ENV...

hi @harikt! I've added a method that should resolve the issue.

Hi there @mbrevda

Thank you.

@harikt you might want to close this issue

@mbrevda once @josegonzalez merge he will be able to close it. The issue is still not resolved in master right ?

ah - ok

On Fri Dec 12 2014 at 12:44:23 PM Hari K T notifications@github.com wrote:

@mbrevda https://github.com/mbrevda once @josegonzalez
https://github.com/josegonzalez merge he will be able to close it. The
issue is still not resolved in master right ?


Reply to this email directly or view it on GitHub
#7 (comment)
.