Skip to content

Commit 2cf9fb6

Browse files
authored
Document why superglobals can appear empty (#558)
1 parent 2f323be commit 2cf9fb6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,10 @@ one-time step to manually copy the `.env.example` file to `.env` and fill-in
342342
their own values (or get any sensitive values from a project co-worker).
343343

344344

345+
### Troubleshooting
346+
347+
In certain server setups (most commonly found in shared hosting), PHP might deactivate superglobals like `$_ENV` or `$_SERVER`. If these variables are not set, review the `variables_order` in the `php.ini` file. See [php.net/manual/en/ini.core.php#ini.variables-order](https://www.php.net/manual/en/ini.core.php#ini.variables-order).
348+
345349
## Security
346350

347351
If you discover a security vulnerability within this package, please send an email to security@tidelift.com. All security vulnerabilities will be promptly addressed. You may view our full security policy [here](https://github.com/vlucas/phpdotenv/security/policy).

0 commit comments

Comments
 (0)