mirror of
https://github.com/php/php-src.git
synced 2025-01-11 05:24:49 +08:00
remove unneeded variables
This commit is contained in:
parent
4e105e0956
commit
c56929d6f1
@ -1117,10 +1117,6 @@ int main(int argc, char *argv[])
|
||||
|
||||
/* end of temporary locals */
|
||||
#ifdef ZTS
|
||||
zend_compiler_globals *compiler_globals;
|
||||
zend_executor_globals *executor_globals;
|
||||
php_core_globals *core_globals;
|
||||
sapi_globals_struct *sapi_globals;
|
||||
void ***tsrm_ls;
|
||||
#endif
|
||||
|
||||
@ -1158,6 +1154,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
#ifdef ZTS
|
||||
tsrm_startup(1, 1, 0, NULL);
|
||||
tsrm_ls = ts_resource(0);
|
||||
#endif
|
||||
|
||||
sapi_startup(&cgi_sapi_module);
|
||||
@ -1240,11 +1237,6 @@ int main(int argc, char *argv[])
|
||||
php_optarg = orig_optarg;
|
||||
|
||||
#ifdef ZTS
|
||||
compiler_globals = ts_resource(compiler_globals_id);
|
||||
executor_globals = ts_resource(executor_globals_id);
|
||||
core_globals = ts_resource(core_globals_id);
|
||||
sapi_globals = ts_resource(sapi_globals_id);
|
||||
tsrm_ls = ts_resource(0);
|
||||
SG(request_info).path_translated = NULL;
|
||||
#endif
|
||||
|
||||
|
@ -609,10 +609,6 @@ int main(int argc, char *argv[])
|
||||
int hide_argv = 0;
|
||||
/* end of temporary locals */
|
||||
#ifdef ZTS
|
||||
zend_compiler_globals *compiler_globals;
|
||||
zend_executor_globals *executor_globals;
|
||||
php_core_globals *core_globals;
|
||||
sapi_globals_struct *sapi_globals;
|
||||
void ***tsrm_ls;
|
||||
#endif
|
||||
#ifdef PHP_CLI_WIN32_NO_CONSOLE
|
||||
@ -650,6 +646,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
#ifdef ZTS
|
||||
tsrm_startup(1, 1, 0, NULL);
|
||||
tsrm_ls = ts_resource(0);
|
||||
#endif
|
||||
|
||||
cli_sapi_module.ini_defaults = sapi_cli_ini_defaults;
|
||||
@ -719,14 +716,6 @@ int main(int argc, char *argv[])
|
||||
cli_sapi_module.executable_location = argv[0];
|
||||
cli_sapi_module.additional_functions = additional_functions;
|
||||
|
||||
#ifdef ZTS
|
||||
compiler_globals = ts_resource(compiler_globals_id);
|
||||
executor_globals = ts_resource(executor_globals_id);
|
||||
core_globals = ts_resource(core_globals_id);
|
||||
sapi_globals = ts_resource(sapi_globals_id);
|
||||
tsrm_ls = ts_resource(0);
|
||||
#endif
|
||||
|
||||
/* startup after we get the above ini override se we get things right */
|
||||
if (cli_sapi_module.startup(&cli_sapi_module)==FAILURE) {
|
||||
/* there is no way to see if we must call zend_ini_deactivate()
|
||||
|
Loading…
Reference in New Issue
Block a user