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

index 747ef5f05f874b77054619f7504ca42325ddb09c..8b1b7d1c1bf07cd38ffedeedb304bb6f67523406 100644 (file)
@@ -400,7 +400,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;