What happens if php.ini is missing?

What happens if php.ini is missing? Is PHP loading with the default setting? Phpinfo () says that the path to the configuration file is / etc, however it also reports the loaded configuration file (none). I went into / etc and noticed that php.ini is missing, only php.ini.default. PHP works though, I assume it should load with default settings. Can anyone confirm this for me?

+6
php
source share
2 answers

PHP has what compiles php.ini compiled into it. The php.ini file on the system is simply to override these precompiled defaults. If php.ini is not there, compile-time values ​​are responsible.

+7
source share

It loads the default settings, yes.

+5
source share

All Articles