We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent feb6dc6 commit ac1d9a1Copy full SHA for ac1d9a1
1 file changed
ext/session/session.c
@@ -2065,14 +2065,12 @@ static bool can_session_handler_be_changed(void) {
2065
}
2066
2067
static inline void set_user_save_handler_ini(void) {
2068
- zend_string *ini_name, *ini_val;
+ /* const */ zend_string *ini_val = ZSTR_KNOWN(ZEND_STR_USER);
2069
+ zend_string *ini_name = ZSTR_INIT_LITERAL("session.save_handler", false);
2070
- ini_name = ZSTR_INIT_LITERAL("session.save_handler", false);
2071
- ini_val = ZSTR_KNOWN(ZEND_STR_USER);
2072
PS(set_handler) = true;
2073
zend_alter_ini_entry(ini_name, ini_val, PHP_INI_USER, PHP_INI_STAGE_RUNTIME);
2074
PS(set_handler) = false;
2075
- zend_string_release_ex(ini_val, false);
2076
zend_string_release_ex(ini_name, false);
2077
2078
0 commit comments