@@ -392,9 +392,9 @@ static void sapi_cli_send_header(sapi_header_struct *sapi_header, void *server_c
392392}
393393/* }}} */
394394
395- static int php_cli_startup (sapi_module_struct * sapi_module ) /* {{{ */
395+ static int php_cli_startup (sapi_module_struct * sapi_module_ptr ) /* {{{ */
396396{
397- return php_module_startup (sapi_module , NULL );
397+ return php_module_startup (sapi_module_ptr , NULL );
398398}
399399/* }}} */
400400
@@ -951,11 +951,11 @@ static int do_cli(int argc, char **argv) /* {{{ */
951951 break ;
952952 case PHP_CLI_MODE_HIGHLIGHT :
953953 {
954- zend_syntax_highlighter_ini syntax_highlighter_ini ;
954+ zend_syntax_highlighter_ini default_syntax_highlighter_ini ;
955955
956956 if (open_file_for_scanning (& file_handle ) == SUCCESS ) {
957- php_get_highlight_struct (& syntax_highlighter_ini );
958- zend_highlight (& syntax_highlighter_ini );
957+ php_get_highlight_struct (& default_syntax_highlighter_ini );
958+ zend_highlight (& default_syntax_highlighter_ini );
959959 }
960960 goto out ;
961961 }
@@ -1155,7 +1155,7 @@ int main(int argc, char *argv[])
11551155 char * ini_path_override = NULL ;
11561156 struct php_ini_builder ini_builder ;
11571157 int ini_ignore = 0 ;
1158- sapi_module_struct * sapi_module = & cli_sapi_module ;
1158+ sapi_module_struct * sapi_module_ptr = & cli_sapi_module ;
11591159
11601160 /*
11611161 * Do not move this initialization. It needs to happen before argv is used
@@ -1234,7 +1234,7 @@ int main(int argc, char *argv[])
12341234 break ;
12351235#ifndef PHP_CLI_WIN32_NO_CONSOLE
12361236 case 'S' :
1237- sapi_module = & cli_server_sapi_module ;
1237+ sapi_module_ptr = & cli_server_sapi_module ;
12381238 cli_server_sapi_module .additional_functions = server_additional_functions ;
12391239 break ;
12401240#endif
@@ -1247,7 +1247,7 @@ int main(int argc, char *argv[])
12471247 exit_status = 1 ;
12481248 goto out ;
12491249 case 'i' : case 'v' : case 'm' :
1250- sapi_module = & cli_sapi_module ;
1250+ sapi_module_ptr = & cli_sapi_module ;
12511251 goto exit_loop ;
12521252 case 'e' : /* enable extended info output */
12531253 use_extended_info = 1 ;
@@ -1256,25 +1256,25 @@ int main(int argc, char *argv[])
12561256 }
12571257exit_loop :
12581258
1259- sapi_module -> ini_defaults = sapi_cli_ini_defaults ;
1260- sapi_module -> php_ini_path_override = ini_path_override ;
1261- sapi_module -> phpinfo_as_text = 1 ;
1262- sapi_module -> php_ini_ignore_cwd = 1 ;
1263- sapi_startup (sapi_module );
1259+ sapi_module_ptr -> ini_defaults = sapi_cli_ini_defaults ;
1260+ sapi_module_ptr -> php_ini_path_override = ini_path_override ;
1261+ sapi_module_ptr -> phpinfo_as_text = 1 ;
1262+ sapi_module_ptr -> php_ini_ignore_cwd = 1 ;
1263+ sapi_startup (sapi_module_ptr );
12641264 sapi_started = 1 ;
12651265
1266- sapi_module -> php_ini_ignore = ini_ignore ;
1266+ sapi_module_ptr -> php_ini_ignore = ini_ignore ;
12671267
1268- sapi_module -> executable_location = argv [0 ];
1268+ sapi_module_ptr -> executable_location = argv [0 ];
12691269
1270- if (sapi_module == & cli_sapi_module ) {
1270+ if (sapi_module_ptr == & cli_sapi_module ) {
12711271 php_ini_builder_prepend_literal (& ini_builder , HARDCODED_INI );
12721272 }
12731273
1274- sapi_module -> ini_entries = php_ini_builder_finish (& ini_builder );
1274+ sapi_module_ptr -> ini_entries = php_ini_builder_finish (& ini_builder );
12751275
12761276 /* startup after we get the above ini override so we get things right */
1277- if (sapi_module -> startup (sapi_module ) == FAILURE ) {
1277+ if (sapi_module_ptr -> startup (sapi_module_ptr ) == FAILURE ) {
12781278 /* there is no way to see if we must call zend_ini_deactivate()
12791279 * since we cannot check if EG(ini_directives) has been initialized
12801280 * because the executor's constructor does not set initialize it.
@@ -1305,7 +1305,7 @@ int main(int argc, char *argv[])
13051305
13061306 zend_first_try {
13071307#ifndef PHP_CLI_WIN32_NO_CONSOLE
1308- if (sapi_module == & cli_sapi_module ) {
1308+ if (sapi_module_ptr == & cli_sapi_module ) {
13091309#endif
13101310 exit_status = do_cli (argc , argv );
13111311#ifndef PHP_CLI_WIN32_NO_CONSOLE
0 commit comments