Skip to content
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

Preserve existing zero-like variables #39

Conversation

tanakahisateru
Copy link
Contributor

I expected that variables in subsequent loading never overwrite existing one. But zero-like values are overwritten.

1st load:

MUST_BE_ZERO=0
MUST_BE_NULL=null

2nd load (with skipExistings):

MUST_BE_ZERO=1
MUST_BE_NULL=1

Unexpected result:

getenv('MUST_BE_ZERO') === "1"
$_ENV['MUST_BE_NULL'] === 1

I think that users want force disabling some option (enabled as default) in OS environment settings.

…)/toServer() couldn't preserve existing null variables.
@josegonzalez josegonzalez merged commit f19174d into josegonzalez:master Sep 19, 2017
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.

None yet

2 participants