diff --git a/main/php_ini.c b/main/php_ini.c index 97038fbbcd0..6380a1b8315 100644 --- a/main/php_ini.c +++ b/main/php_ini.c @@ -428,7 +428,7 @@ int php_init_config() /* If the config_file_scan_dir is set at compile-time, go and scan this directory and * parse any .ini files found in this directory. */ - if (strlen(PHP_CONFIG_FILE_SCAN_DIR)) { + if (!sapi_module.php_ini_ignore && strlen(PHP_CONFIG_FILE_SCAN_DIR)) { struct dirent **namelist; int ndir, i;