Skip to content

Commit d9e1697

Browse files
author
Jérôme Loyet
committed
cleanup unused php.ini variable
1 parent 6e66e42 commit d9e1697

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

sapi/fpm/fpm/fpm_main.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -162,15 +162,11 @@ static const opt_struct OPTIONS[] = {
162162
typedef struct _php_cgi_globals_struct {
163163
zend_bool rfc2616_headers;
164164
zend_bool nph;
165-
zend_bool check_shebang_line;
166165
zend_bool fix_pathinfo;
167166
zend_bool force_redirect;
168167
zend_bool discard_path;
169168
zend_bool fcgi_logging;
170169
char *redirect_status_env;
171-
#ifdef PHP_WIN32
172-
zend_bool impersonate;
173-
#endif
174170
HashTable user_config_cache;
175171
char *error_header;
176172
char *fpm_config;
@@ -1398,15 +1394,11 @@ void fastcgi_cleanup(int signal)
13981394
PHP_INI_BEGIN()
13991395
STD_PHP_INI_ENTRY("cgi.rfc2616_headers", "0", PHP_INI_ALL, OnUpdateBool, rfc2616_headers, php_cgi_globals_struct, php_cgi_globals)
14001396
STD_PHP_INI_ENTRY("cgi.nph", "0", PHP_INI_ALL, OnUpdateBool, nph, php_cgi_globals_struct, php_cgi_globals)
1401-
STD_PHP_INI_ENTRY("cgi.check_shebang_line", "1", PHP_INI_SYSTEM, OnUpdateBool, check_shebang_line, php_cgi_globals_struct, php_cgi_globals)
14021397
STD_PHP_INI_ENTRY("cgi.force_redirect", "1", PHP_INI_SYSTEM, OnUpdateBool, force_redirect, php_cgi_globals_struct, php_cgi_globals)
14031398
STD_PHP_INI_ENTRY("cgi.redirect_status_env", NULL, PHP_INI_SYSTEM, OnUpdateString, redirect_status_env, php_cgi_globals_struct, php_cgi_globals)
14041399
STD_PHP_INI_ENTRY("cgi.fix_pathinfo", "1", PHP_INI_SYSTEM, OnUpdateBool, fix_pathinfo, php_cgi_globals_struct, php_cgi_globals)
14051400
STD_PHP_INI_ENTRY("cgi.discard_path", "0", PHP_INI_SYSTEM, OnUpdateBool, discard_path, php_cgi_globals_struct, php_cgi_globals)
14061401
STD_PHP_INI_ENTRY("fastcgi.logging", "1", PHP_INI_SYSTEM, OnUpdateBool, fcgi_logging, php_cgi_globals_struct, php_cgi_globals)
1407-
#ifdef PHP_WIN32
1408-
STD_PHP_INI_ENTRY("fastcgi.impersonate", "0", PHP_INI_SYSTEM, OnUpdateBool, impersonate, php_cgi_globals_struct, php_cgi_globals)
1409-
#endif
14101402
STD_PHP_INI_ENTRY("fastcgi.error_header", NULL, PHP_INI_SYSTEM, OnUpdateString, error_header, php_cgi_globals_struct, php_cgi_globals)
14111403
STD_PHP_INI_ENTRY("fpm.config", NULL, PHP_INI_SYSTEM, OnUpdateString, fpm_config, php_cgi_globals_struct, php_cgi_globals)
14121404
PHP_INI_END()
@@ -1417,15 +1409,11 @@ static void php_cgi_globals_ctor(php_cgi_globals_struct *php_cgi_globals TSRMLS_
14171409
{
14181410
php_cgi_globals->rfc2616_headers = 0;
14191411
php_cgi_globals->nph = 0;
1420-
php_cgi_globals->check_shebang_line = 1;
14211412
php_cgi_globals->force_redirect = 1;
14221413
php_cgi_globals->redirect_status_env = NULL;
14231414
php_cgi_globals->fix_pathinfo = 1;
14241415
php_cgi_globals->discard_path = 0;
14251416
php_cgi_globals->fcgi_logging = 1;
1426-
#ifdef PHP_WIN32
1427-
php_cgi_globals->impersonate = 0;
1428-
#endif
14291417
zend_hash_init(&php_cgi_globals->user_config_cache, 0, NULL, (dtor_func_t) user_config_cache_entry_dtor, 1);
14301418
php_cgi_globals->error_header = NULL;
14311419
php_cgi_globals->fpm_config = NULL;

0 commit comments

Comments
 (0)