From: Zeev Suraski Date: Sat, 19 Jun 1999 13:18:48 +0000 (+0000) Subject: Use php.ini instead of php3.ini X-Git-Tag: BEFORE_REMOVING_GC_STEP1~116 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=57882d58e1e4aaf8b9177c59cd5d8b79dbb44da2;p=php Use php.ini instead of php3.ini --- diff --git a/cgi_main.c b/cgi_main.c index c98d56e1db..520b9e2f37 100644 --- a/cgi_main.c +++ b/cgi_main.c @@ -145,7 +145,7 @@ static void php_cgi_usage(char *argv0) " -s Display colour syntax highlighted source.\n" " -f Parse . Implies `-q'\n" " -v Version number\n" - " -c Look for php4.ini file in this directory\n" + " -c Look for php.ini file in this directory\n" #if SUPPORT_INTERACTIVE " -a Run interactively\n" #endif @@ -235,7 +235,7 @@ set. This variable is set, for example, by Apache's Action directive redirect.\ --disable-force-cgi-redirect switch. If you do this and you have your PHP CGI\n\ binary accessible somewhere in your web tree, people will be able to circumvent\n\ .htaccess security by loading files through the PHP parser. A good way around\n\ -this is to define doc_root in your php4.ini file to something other than your\n\ +this is to define doc_root in your php.ini file to something other than your\n\ top-level DOCUMENT_ROOT. This way you can separate the part of your web space\n\n\ which uses PHP from the normal part using .htaccess security. If you do not have\n\ any .htaccess restrictions anywhere on your site you can leave doc_root undefined.\n\ diff --git a/main/config.w32.h b/main/config.w32.h index ba09bd7ee0..d0c2ae7a29 100644 --- a/main/config.w32.h +++ b/main/config.w32.h @@ -21,7 +21,7 @@ #define PHP_SAFE_MODE 0 #define MAGIC_QUOTES 0 /* This is the default configuration file to read */ -#define CONFIGURATION_FILE_PATH "php3.ini" +#define CONFIGURATION_FILE_PATH "php.ini" #define USE_CONFIG_FILE 1 /* Undefine if you want stricter XML/SGML compliance by default */ diff --git a/main/configuration-parser.y b/main/configuration-parser.y index 0f4a57d0fc..fecfc323df 100644 --- a/main/configuration-parser.y +++ b/main/configuration-parser.y @@ -211,7 +211,7 @@ int php3_init_config(void) } PG(safe_mode) = 0; PG(open_basedir) = NULL; - cfgin = php3_fopen_with_path("php3.ini","r",php_ini_path,&opened_path); + cfgin = php3_fopen_with_path("php.ini","r",php_ini_path,&opened_path); free(php_ini_path); if (free_default_location) { free(default_location); @@ -242,7 +242,7 @@ int php3_init_config(void) init_cfg_scanner(); active__php3_hash_table = &configuration_hash; parsing_mode = PARSING_MODE_CFG; - currently_parsed_filename = "php3.ini"; + currently_parsed_filename = "php.ini"; yyparse(); fclose(cfgin); } diff --git a/win32/sendmail.c b/win32/sendmail.c index 2a32cff950..659bc134a4 100644 --- a/win32/sendmail.c +++ b/win32/sendmail.c @@ -86,7 +86,7 @@ static char *ErrorMessages[] = {"Bad Message Return Path"}, {"Bad Mail Host"}, {"Bad Message File"}, - {"PHP Internal error: php3.ini sendmail from variable not set!"} + {"PHP Internal error: php.ini sendmail from variable not set!"} };