]> granicus.if.org Git - php/commitdiff
- MFH: move declaration on top and fix build error
authorFelipe Pena <felipe@php.net>
Thu, 14 Aug 2008 16:34:30 +0000 (16:34 +0000)
committerFelipe Pena <felipe@php.net>
Thu, 14 Aug 2008 16:34:30 +0000 (16:34 +0000)
main/php_ini.c

index 498cac1e3bfa4c0b1a611474a88c1e299e0edcce..8b51884d79b950d6b9b217b62cd7b107b15aa506 100644 (file)
@@ -261,6 +261,7 @@ int php_init_config(TSRMLS_D)
 {
        char *php_ini_file_name = NULL;
        char *php_ini_search_path = NULL;
+       int php_ini_scanned_path_len;
        int safe_mode_state;
        char *open_basedir;
        int free_ini_search_path = 0;
@@ -527,7 +528,7 @@ int php_init_config(TSRMLS_D)
                /* Or fall back using possible --with-config-file-scan-dir setting (defaults to empty string!) */
                php_ini_scanned_path = PHP_CONFIG_FILE_SCAN_DIR;
        }
-       int php_ini_scanned_path_len = strlen(php_ini_scanned_path);
+       php_ini_scanned_path_len = strlen(php_ini_scanned_path);
 
        /* Scan and parse any .ini files found in scan path if path not empty. */
        if (!sapi_module.php_ini_ignore && php_ini_scanned_path_len) {