@@ -1951,31 +1951,31 @@ static inline void set_user_save_handler_ini(void) {
1951
1951
}
1952
1952
1953
1953
#define SESSION_RELEASE_USER_HANDLER_OO (struct_name ) \
1954
- if (!Z_ISUNDEF(PS(mod_user_names).name. struct_name)) { \
1955
- zval_ptr_dtor(&PS(mod_user_names).name. struct_name); \
1956
- ZVAL_UNDEF(&PS(mod_user_names).name. struct_name); \
1954
+ if (!Z_ISUNDEF(PS(mod_user_names).struct_name)) { \
1955
+ zval_ptr_dtor(&PS(mod_user_names).struct_name); \
1956
+ ZVAL_UNDEF(&PS(mod_user_names).struct_name); \
1957
1957
}
1958
1958
1959
1959
#define SESSION_SET_USER_HANDLER_OO (struct_name , zstr_method_name ) \
1960
- array_init_size(&PS(mod_user_names).name. struct_name, 2); \
1960
+ array_init_size(&PS(mod_user_names).struct_name, 2); \
1961
1961
Z_ADDREF_P(obj); \
1962
- add_next_index_zval(&PS(mod_user_names).name. struct_name, obj); \
1963
- add_next_index_str(&PS(mod_user_names).name. struct_name, zstr_method_name);
1962
+ add_next_index_zval(&PS(mod_user_names).struct_name, obj); \
1963
+ add_next_index_str(&PS(mod_user_names).struct_name, zstr_method_name);
1964
1964
1965
1965
#define SESSION_SET_USER_HANDLER_OO_MANDATORY (struct_name , method_name ) \
1966
- if (!Z_ISUNDEF(PS(mod_user_names).name. struct_name)) { \
1967
- zval_ptr_dtor(&PS(mod_user_names).name. struct_name); \
1966
+ if (!Z_ISUNDEF(PS(mod_user_names).struct_name)) { \
1967
+ zval_ptr_dtor(&PS(mod_user_names).struct_name); \
1968
1968
} \
1969
- array_init_size(&PS(mod_user_names).name. struct_name, 2); \
1969
+ array_init_size(&PS(mod_user_names).struct_name, 2); \
1970
1970
Z_ADDREF_P(obj); \
1971
- add_next_index_zval(&PS(mod_user_names).name. struct_name, obj); \
1972
- add_next_index_str(&PS(mod_user_names).name. struct_name, zend_string_init(method_name, strlen(method_name), false));
1971
+ add_next_index_zval(&PS(mod_user_names).struct_name, obj); \
1972
+ add_next_index_str(&PS(mod_user_names).struct_name, zend_string_init(method_name, strlen(method_name), false));
1973
1973
1974
1974
#define SESSION_SET_USER_HANDLER_PROCEDURAL (struct_name , fci ) \
1975
- if (!Z_ISUNDEF(PS(mod_user_names).name. struct_name)) { \
1976
- zval_ptr_dtor(&PS(mod_user_names).name. struct_name); \
1975
+ if (!Z_ISUNDEF(PS(mod_user_names).struct_name)) { \
1976
+ zval_ptr_dtor(&PS(mod_user_names).struct_name); \
1977
1977
} \
1978
- ZVAL_COPY(&PS(mod_user_names).name. struct_name, &fci.function_name);
1978
+ ZVAL_COPY(&PS(mod_user_names).struct_name, &fci.function_name);
1979
1979
1980
1980
#define SESSION_SET_USER_HANDLER_PROCEDURAL_OPTIONAL (struct_name , fci ) \
1981
1981
if (ZEND_FCI_INITIALIZED(fci)) { \
@@ -2294,7 +2294,7 @@ PHP_FUNCTION(session_regenerate_id)
2294
2294
RETURN_THROWS ();
2295
2295
}
2296
2296
if (PS (use_strict_mode )) {
2297
- if ((!PS (mod_user_implemented ) && PS (mod )-> s_validate_sid ) || !Z_ISUNDEF (PS (mod_user_names ).name . ps_validate_sid )) {
2297
+ if ((!PS (mod_user_implemented ) && PS (mod )-> s_validate_sid ) || !Z_ISUNDEF (PS (mod_user_names ).ps_validate_sid )) {
2298
2298
int limit = 3 ;
2299
2299
/* Try to generate non-existing ID */
2300
2300
while (limit -- && PS (mod )-> s_validate_sid (& PS (mod_data ), PS (id )) == SUCCESS ) {
@@ -2360,7 +2360,7 @@ PHP_FUNCTION(session_create_id)
2360
2360
int limit = 3 ;
2361
2361
while (limit -- ) {
2362
2362
new_id = PS (mod )-> s_create_sid (& PS (mod_data ));
2363
- if (!PS (mod )-> s_validate_sid || (PS (mod_user_implemented ) && Z_ISUNDEF (PS (mod_user_names ).name . ps_validate_sid ))) {
2363
+ if (!PS (mod )-> s_validate_sid || (PS (mod_user_implemented ) && Z_ISUNDEF (PS (mod_user_names ).ps_validate_sid ))) {
2364
2364
break ;
2365
2365
} else {
2366
2366
/* Detect collision and retry */
@@ -2776,9 +2776,9 @@ static PHP_RINIT_FUNCTION(session) /* {{{ */
2776
2776
/* }}} */
2777
2777
2778
2778
#define SESSION_FREE_USER_HANDLER (struct_name ) \
2779
- if (!Z_ISUNDEF(PS(mod_user_names).name. struct_name)) { \
2780
- zval_ptr_dtor(&PS(mod_user_names).name. struct_name); \
2781
- ZVAL_UNDEF(&PS(mod_user_names).name. struct_name); \
2779
+ if (!Z_ISUNDEF(PS(mod_user_names).struct_name)) { \
2780
+ zval_ptr_dtor(&PS(mod_user_names).struct_name); \
2781
+ ZVAL_UNDEF(&PS(mod_user_names).struct_name); \
2782
2782
}
2783
2783
2784
2784
@@ -2827,15 +2827,15 @@ static PHP_GINIT_FUNCTION(ps) /* {{{ */
2827
2827
ps_globals -> session_vars = NULL ;
2828
2828
ps_globals -> set_handler = 0 ;
2829
2829
/* Unset user defined handlers */
2830
- ZVAL_UNDEF (& ps_globals -> mod_user_names .name . ps_open );
2831
- ZVAL_UNDEF (& ps_globals -> mod_user_names .name . ps_close );
2832
- ZVAL_UNDEF (& ps_globals -> mod_user_names .name . ps_read );
2833
- ZVAL_UNDEF (& ps_globals -> mod_user_names .name . ps_write );
2834
- ZVAL_UNDEF (& ps_globals -> mod_user_names .name . ps_destroy );
2835
- ZVAL_UNDEF (& ps_globals -> mod_user_names .name . ps_gc );
2836
- ZVAL_UNDEF (& ps_globals -> mod_user_names .name . ps_create_sid );
2837
- ZVAL_UNDEF (& ps_globals -> mod_user_names .name . ps_validate_sid );
2838
- ZVAL_UNDEF (& ps_globals -> mod_user_names .name . ps_update_timestamp );
2830
+ ZVAL_UNDEF (& ps_globals -> mod_user_names .ps_open );
2831
+ ZVAL_UNDEF (& ps_globals -> mod_user_names .ps_close );
2832
+ ZVAL_UNDEF (& ps_globals -> mod_user_names .ps_read );
2833
+ ZVAL_UNDEF (& ps_globals -> mod_user_names .ps_write );
2834
+ ZVAL_UNDEF (& ps_globals -> mod_user_names .ps_destroy );
2835
+ ZVAL_UNDEF (& ps_globals -> mod_user_names .ps_gc );
2836
+ ZVAL_UNDEF (& ps_globals -> mod_user_names .ps_create_sid );
2837
+ ZVAL_UNDEF (& ps_globals -> mod_user_names .ps_validate_sid );
2838
+ ZVAL_UNDEF (& ps_globals -> mod_user_names .ps_update_timestamp );
2839
2839
ZVAL_UNDEF (& ps_globals -> http_session_vars );
2840
2840
}
2841
2841
/* }}} */
0 commit comments