]> granicus.if.org Git - php/commitdiff
Fixed bug: #22011 (-n must ignore all ini files)
authorfoobar <sniper@php.net>
Mon, 3 Feb 2003 12:25:28 +0000 (12:25 +0000)
committerfoobar <sniper@php.net>
Mon, 3 Feb 2003 12:25:28 +0000 (12:25 +0000)
main/php_ini.c

index 97038fbbcd02de9e8af142f46b73cdc15b6edbf2..6380a1b83153ac6b2618504c6c626475cef21cf8 100644 (file)
@@ -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;