Skip to content

Commit 38ecfc5

Browse files
committed
ext/filter: Remove dead code about session globals
1 parent 011795b commit 38ecfc5

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

ext/filter/filter.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,6 @@ ZEND_TSRMLS_CACHE_UPDATE();
144144
ZVAL_UNDEF(&filter_globals->cookie_array);
145145
ZVAL_UNDEF(&filter_globals->env_array);
146146
ZVAL_UNDEF(&filter_globals->server_array);
147-
#if 0
148-
ZVAL_UNDEF(&filter_globals->session_array);
149-
#endif
150147
filter_globals->default_filter = FILTER_DEFAULT;
151148
}
152149
/* }}} */
@@ -189,9 +186,6 @@ PHP_RSHUTDOWN_FUNCTION(filter)
189186
VAR_ARRAY_COPY_DTOR(cookie_array)
190187
VAR_ARRAY_COPY_DTOR(server_array)
191188
VAR_ARRAY_COPY_DTOR(env_array)
192-
#if 0
193-
VAR_ARRAY_COPY_DTOR(session_array)
194-
#endif
195189
return SUCCESS;
196190
}
197191
/* }}} */
@@ -234,9 +228,6 @@ static unsigned int php_sapi_filter_init(void)
234228
ZVAL_UNDEF(&IF_G(cookie_array));
235229
ZVAL_UNDEF(&IF_G(server_array));
236230
ZVAL_UNDEF(&IF_G(env_array));
237-
#if 0
238-
ZVAL_UNDEF(&IF_G(session_array));
239-
#endif
240231
return SUCCESS;
241232
}
242233

ext/filter/php_filter.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,6 @@ ZEND_BEGIN_MODULE_GLOBALS(filter)
4242
zval cookie_array;
4343
zval env_array;
4444
zval server_array;
45-
#if 0
46-
zval session_array;
47-
#endif
4845
zend_long default_filter;
4946
zend_long default_filter_flags;
5047
ZEND_END_MODULE_GLOBALS(filter)

0 commit comments

Comments
 (0)