]> granicus.if.org Git - php/commitdiff
- MFB: move declaration on top and fix build error
authorPierre Joye <pajoye@php.net>
Wed, 13 Aug 2008 21:51:54 +0000 (21:51 +0000)
committerPierre Joye <pajoye@php.net>
Wed, 13 Aug 2008 21:51:54 +0000 (21:51 +0000)
main/php_ini.c

index dc1e0699aa1952e963abeb0808f64e5d91849fc7..4e904eed8b6d92a7ab65bfc3339801b16b83a3cd 100644 (file)
@@ -340,6 +340,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;
        char *open_basedir;
        int free_ini_search_path = 0;
        zend_file_handle fh;
@@ -598,7 +599,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) {