Skip to content

Commit e8e0157

Browse files
committedAug 22, 2022
Use bool instead of int in session struct
1 parent d0d6dae commit e8e0157

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎ext/session/php_session.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ typedef struct _php_ps_globals {
174174
zval ps_update_timestamp;
175175
} name;
176176
} mod_user_names;
177-
int mod_user_implemented;
178-
int mod_user_is_open;
177+
bool mod_user_implemented;
178+
bool mod_user_is_open;
179179
zend_string *mod_user_class_name;
180180
const struct ps_serializer_struct *serializer;
181181
zval http_session_vars;
@@ -186,8 +186,8 @@ typedef struct _php_ps_globals {
186186

187187
zend_long sid_length;
188188
zend_long sid_bits_per_character;
189-
int send_cookie;
190-
int define_sid;
189+
bool send_cookie;
190+
bool define_sid;
191191

192192
php_session_rfc1867_progress *rfc1867_progress;
193193
bool rfc1867_enabled; /* session.upload_progress.enabled */

0 commit comments

Comments
 (0)