Skip to content

Commit ccc7eb9

Browse files
Updated documentation
1 parent 16322a1 commit ccc7eb9

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77

88

9+
## [0.3.1] - 2023-12-18
10+
11+
### Fixed
12+
- Added the ability to load .env files with Windows directory separators (i.e. "\\") in the path - thanks to [Tomas Nev](https://github.com/tmsnvd) for [identifying the problem](https://github.com/tmsnvd/fluent-dotenv/commit/0c8b7b2f9c04903ffc7b562bac28b58eb26468eb)
13+
14+
15+
916
## [0.3.0] - 2023-12-16
1017

1118
### Changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Fluent dotenv
1+
# FluentDotEnv
22

33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/code-distortion/fluent-dotenv.svg?style=flat-square)](https://packagist.org/packages/code-distortion/fluent-dotenv)
4-
![PHP Version](https://img.shields.io/badge/PHP-7.0%20to%208.3-blue?style=flat-square)
4+
[![PHP Version](https://img.shields.io/badge/PHP-7.0%20to%208.3-blue?style=flat-square)](https://php.net)
55
[![vlucas/phpdotenv](https://img.shields.io/badge/vlucas%2Fphpdotenv-1.1%20to%205.x-blue?style=flat-square)](https://github.com/vlucas/phpdotenv)
66
[![symfony/dotenv](https://img.shields.io/badge/symfony%2Fdotenv-3.3%20to%207.x-blue?style=flat-square)](https://github.com/symfony/dotenv)
77
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/code-distortion/fluent-dotenv/run-tests.yml?branch=master&style=flat-square)](https://github.com/code-distortion/fluent-dotenv/actions)
@@ -272,13 +272,13 @@ $fDotEnv = FluentDotEnv::new()
272272

273273
### Putenv() and getenv()
274274

275-
The `putenv(…)` and `getenv(…)` functions are not thread-safe which may cause issues in a multi-threaded environment. For this reason this functionality is not included in this package. You can read discussion about this [here](https://github.com/vlucas/phpdotenv/issues/76) and [here](https://github.com/symfony/symfony/discussions/49928).
275+
The `putenv(…)` and `getenv(…)` functions are not thread-safe, which may cause issues in a multi-threaded environment. For this reason this functionality is not included in this package. You can read discussion about this [here](https://github.com/vlucas/phpdotenv/issues/76) and [here](https://github.com/symfony/symfony/discussions/49928).
276276

277-
> ***NOTE:*** symfony/dotenv [added an option to turn off the use of putenv()](https://github.com/symfony/dotenv/commit/e1f27138406a700c01d4e05e861226bb0c28b83a#diff-b73348fec7eb6dfdb482d959a985979c5bead6091837e488319d75983556f5e7R74-L74) in version 5.1.0. FluentDotEnv uses this. In earlier versions, it uses putenv() without a way to turn it off.
277+
> ***NOTE:*** If you're using symfony/dotenv, you may want to consider using version 5.1.0 or higher…
278+
>
279+
> symfony/dotenv [added an option to turn off the use of putenv()](https://github.com/symfony/dotenv/commit/e1f27138406a700c01d4e05e861226bb0c28b83a#diff-b73348fec7eb6dfdb482d959a985979c5bead6091837e488319d75983556f5e7R74-L74) in version 5.1.0. FluentDotEnv uses this to make sure the environment variables don't get changed. However, in earlier versions putenv() is used without a way to turn it off.
278280
>
279281
> FluentDotEnv hides this away, leaving your environment variables the same as they were before loading. ***But***, it means that environment variables are changed temporarily during the `->load()` process.
280-
>
281-
> If you're using symfony/dotenv, you may want to consider using version 5.1.0 or higher.
282282
283283

284284

0 commit comments

Comments
 (0)