vlucas / phpdotenv

Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.
BSD 3-Clause "New" or "Revised" License
13.15k stars 626 forks source link

Nesting Variables do not work for me on a raspberry #571

Open ecxod opened 4 months ago

ecxod commented 4 months ago

I tried to do things like this :

LA="de"
COUNTRY="DE"
LANG="${LA}_${COUNTRY}"
CHARSET="UTF-8"
LC_CTYPE="${LANG}@${CHARSET}"

and it does not work on my raspberry the variables are simply not loaded.

But things like this :

LA="de"
COUNTRY="DE"
LANG="de_DE"
CHARSET="UTF-8"
LC_CTYPE="de_DE@UTF-8"

work without problems on raspberry

on a normal Linux box both versions work.

Is there some requirement missing on the raspberry? how can I put phpdotenv in debug mode or see the phpdotenvs log files ?