summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorPierre Joye <pajoye@php.net>2008-08-13 17:49:13 +0000
committerPierre Joye <pajoye@php.net>2008-08-13 17:49:13 +0000
commit1463a824e82024041a86c53dce7832d2791a9c98 (patch)
tree6406f1f5b0bd90cfcc4da8d477e313361cde9276 /main
parent3a9f17dfb8d9d1674eae909ac6c380979d86489c (diff)
downloadphp-git-1463a824e82024041a86c53dce7832d2791a9c98.tar.gz
- move declaration on top and fix build error
Diffstat (limited to 'main')
-rw-r--r--main/php_ini.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main/php_ini.c b/main/php_ini.c
index b6db472d1f..f83e269592 100644
--- a/main/php_ini.c
+++ b/main/php_ini.c
@@ -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;
int safe_mode_state;
char *open_basedir;
int free_ini_search_path = 0;
@@ -602,7 +603,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) {