If you can drop a .env file on a server. You can drop a well formed .ini file instead. I don't see any reason to ever parse a env file as a ini file.
post
replies:
TLDR:
You should
probablyuse a proper parser rather than hoping your .env looks enough like an .ini to pass muster.
You can probably use a butter knife instead of a flat screwdriver but just do your job properly.
all 3 comments