Description
PHP Version
8.1
CodeIgniter4 Version
4.2.1
CodeIgniter4 Installation Method
Composer (using codeigniter4/appstarter
)
Which operating systems have you tested for this bug?
Linux
Which server did you use?
apache
Database
MariaDB
What happened?
In the container the environment variable CI_ENVIRONMENT=development is set, even so codeigniter does not use development.php but production.php (As if production was set). I think it is a matter of replacing _ with . (Somewhere in the code is hardcoded taking of CI_ENVIRONMENT instead of CI.ENVIRONMENT or something like that - namespace separator https://www.codeigniter.com/user_guide/general/configuration.html).
Steps to Reproduce
setup CI_ENVIRONMENT in container environment variables without .env or env file and check whether the errors that appear will have a stacktrace or whether the "whoops" production page will appear
Expected Output
It should use the development environment variable when it's set on the container and now it doesn't detect it.
Anything else?
nope.