Skip to content

Rename nul.env test fixture to prevent Windows checkout failure - #620

Open
littfed wants to merge 1 commit into
phpdotenv:masterfrom
littfed:fix/windows-checkout-nul-fixture
Open

littfed wants to merge 1 commit into
phpdotenv:masterfrom
littfed:fix/windows-checkout-nul-fixture

Conversation

@littfed

@littfed littfed commented Oct 7, 2026

Copy link
Copy Markdown

Fixes #619

Description

On Windows, Git fails to check out tests/fixtures/env/nul.env because NUL is a reserved DOS device name (along with CON, PRN, AUX, etc.), resulting in:

error: invalid path 'tests/fixtures/env/nul.env'

This causes composer update / source installs on Windows to fail when checking out the repository.

Solution

Rename tests/fixtures/env/nul.env to tests/fixtures/env/nullbyte.env (matching existing fixtures like multibyte.env) and update the test reference in tests/Dotenv/DotenvTest.php.

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.

Windows checkout fails on tests/fixtures/env/nul.env in v5.7.0

1 participant