Title: Windows checkout fails on tests/fixtures/env/nul.env in v5.7.0 · Issue #619 · phpdotenv/phpdotenv · GitHub
Open Graph Title: Windows checkout fails on tests/fixtures/env/nul.env in v5.7.0 · Issue #619 · phpdotenv/phpdotenv
X Title: Windows checkout fails on tests/fixtures/env/nul.env in v5.7.0 · Issue #619 · phpdotenv/phpdotenv
Description: Description On Windows, Composer fails while installing vlucas/phpdotenv v5.7.0 from source. Git cannot check out the test fixture tests/fixtures/env/nul.env because NUL is a reserved Windows device name. The file was added in v5.7.0: te...
Open Graph Description: Description On Windows, Composer fails while installing vlucas/phpdotenv v5.7.0 from source. Git cannot check out the test fixture tests/fixtures/env/nul.env because NUL is a reserved Windows devic...
X Description: Description On Windows, Composer fails while installing vlucas/phpdotenv v5.7.0 from source. Git cannot check out the test fixture tests/fixtures/env/nul.env because NUL is a reserved Windows devic...
Opengraph URL: https://github.com/phpdotenv/phpdotenv/issues/619
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Windows checkout fails on tests/fixtures/env/nul.env in v5.7.0","articleBody":"**Description**\nOn Windows, Composer fails while installing vlucas/phpdotenv v5.7.0 from source. Git cannot check out the test fixture tests/fixtures/env/nul.env because NUL is a reserved Windows device name.\n\nThe file was added in v5.7.0: [tests/fixtures/env/nul.env](https://github.com/vlucas/phpdotenv/tree/v5.7.0/tests/fixtures/env).\n\n**Steps to reproduce**\nRun composer update on Windows in a project that resolves vlucas/phpdotenv to v5.7.0.\nComposer attempts to check out the package from source.\n\n**Actual result**\nGit checkout fails with:\n\n`error: invalid path 'tests/fixtures/env/nul.env'`\n\nComposer then reports that it failed to execute the Git checkout/reset for the package.\n\n**Expected result**\nComposer should be able to install the package on Windows, or the fixture should be named/stored in a way that does not prevent Windows checkouts.\n\n**Environment**\nOS: Windows Microsoft Windows 11 Pro, 10.0.26200 Build 26200\nComposer version: 2.8.9 2025-05-13 14:01:37\nPHP version: 8.4.7\nphpdotenv: v5.7.0 (301c07936b16d88628b126b01d082ba153cf4c40)\n\n**Workaround**\nOn Windows with Composer 2.10.3, `composer install --prefer-dist` completed successfully. It installed `vlucas/phpdotenv` v5.7.0 by extracting the distribution archive, avoiding the Git source checkout that fails on `tests/fixtures/env/nul.env`.","author":{"url":"https://github.com/spirant","@type":"Person","name":"spirant"},"datePublished":"2026-10-02T10:14:02Z","url":"https://github.com/phpdotenv/phpdotenv/issues/619"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:55ac67a4-a80d-fdb5-7091-22eee6b4278e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BDF2:3FD98D:8EF34A:BDE543:6B06351B |
| html-safe-nonce | 828db55d4bf9efa731ea00b51636971decde77e0d956da14cbb51c24ebf7d20e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCREYyOjNGRDk4RDo4RUYzNEE6QkRFNTQzOjZCMDYzNTFCIiwidmlzaXRvcl9pZCI6IjYzNjUwNTkwMjgxNDU4MTI3NjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2dabffc3c3d2aa3466b60bb32e44c29b9dd95009b7dcbf38edf110bd23d78bcd |
| hovercard-subject-tag | issue:5676002813 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/phpdotenv/phpdotenv/619/issue_layout |
| twitter:image | https://opengraph.githubassets.com/111e7dfd7db9329fc19936ba836e77888168d80f94505579171be42ea2cb76e7/phpdotenv/phpdotenv/issues/619 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/111e7dfd7db9329fc19936ba836e77888168d80f94505579171be42ea2cb76e7/phpdotenv/phpdotenv/issues/619 |
| og:image:alt | Description On Windows, Composer fails while installing vlucas/phpdotenv v5.7.0 from source. Git cannot check out the test fixture tests/fixtures/env/nul.env because NUL is a reserved Windows devic... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | spirant |
| hostname | github.com |
| expected-hostname | github.com |
| None | c3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0 |
| turbo-cache-control | no-preview |
| go-import | github.com/phpdotenv/phpdotenv git https://github.com/phpdotenv/phpdotenv.git |
| octolytics-dimension-user_id | 320763234 |
| octolytics-dimension-user_login | phpdotenv |
| octolytics-dimension-repository_id | 7769432 |
| octolytics-dimension-repository_nwo | phpdotenv/phpdotenv |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7769432 |
| octolytics-dimension-repository_network_root_nwo | phpdotenv/phpdotenv |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9eb3bb1597d09170a5f282cd38ae376dee1a5ec1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width