Skip to content

Commit 8af0562

Browse files
committed
ext/session: add const qualifiers
1 parent cc304d1 commit 8af0562

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/session/session.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,12 +1186,12 @@ typedef struct {
11861186
#define ADD_HEADER(a) sapi_add_header(a, strlen(a), 1);
11871187
#define MAX_STR 512
11881188

1189-
static const char *month_names[] = {
1189+
static const char *const month_names[] = {
11901190
"Jan", "Feb", "Mar", "Apr", "May", "Jun",
11911191
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
11921192
};
11931193

1194-
static const char *week_days[] = {
1194+
static const char *const week_days[] = {
11951195
"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"
11961196
};
11971197

@@ -2535,7 +2535,7 @@ PHP_FUNCTION(session_decode)
25352535
RETURN_BOOL(php_session_decode(str) == SUCCESS);
25362536
}
25372537

2538-
static zend_result php_session_start_set_ini(zend_string *varname, zend_string *new_value) {
2538+
static zend_result php_session_start_set_ini(const zend_string *varname, zend_string *new_value) {
25392539
zend_result ret;
25402540
smart_str buf ={0};
25412541
smart_str_appends(&buf, "session");

0 commit comments

Comments
 (0)