Skip to content

Commit 3f3ac4d

Browse files
authoredMar 13, 2025
[skip ci] Remove wrappers comments in session ext (#18017)
1 parent 0d10f7b commit 3f3ac4d

File tree

2 files changed

+92
-203
lines changed

2 files changed

+92
-203
lines changed
 

‎ext/session/mod_user_class.c

-14
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
RETURN_FALSE; \
3535
}
3636

37-
/* {{{ Wraps the old open handler */
3837
PHP_METHOD(SessionHandler, open)
3938
{
4039
char *save_path = NULL, *session_name = NULL;
@@ -60,9 +59,7 @@ PHP_METHOD(SessionHandler, open)
6059

6160
RETURN_BOOL(SUCCESS == ret);
6261
}
63-
/* }}} */
6462

65-
/* {{{ Wraps the old close handler */
6663
PHP_METHOD(SessionHandler, close)
6764
{
6865
zend_result ret;
@@ -84,9 +81,7 @@ PHP_METHOD(SessionHandler, close)
8481

8582
RETURN_BOOL(SUCCESS == ret);
8683
}
87-
/* }}} */
8884

89-
/* {{{ Wraps the old read handler */
9085
PHP_METHOD(SessionHandler, read)
9186
{
9287
zend_string *val;
@@ -104,9 +99,7 @@ PHP_METHOD(SessionHandler, read)
10499

105100
RETURN_STR(val);
106101
}
107-
/* }}} */
108102

109-
/* {{{ Wraps the old write handler */
110103
PHP_METHOD(SessionHandler, write)
111104
{
112105
zend_string *key, *val;
@@ -119,9 +112,7 @@ PHP_METHOD(SessionHandler, write)
119112

120113
RETURN_BOOL(SUCCESS == PS(default_mod)->s_write(&PS(mod_data), key, val, PS(gc_maxlifetime)));
121114
}
122-
/* }}} */
123115

124-
/* {{{ Wraps the old destroy handler */
125116
PHP_METHOD(SessionHandler, destroy)
126117
{
127118
zend_string *key;
@@ -134,9 +125,7 @@ PHP_METHOD(SessionHandler, destroy)
134125

135126
RETURN_BOOL(SUCCESS == PS(default_mod)->s_destroy(&PS(mod_data), key));
136127
}
137-
/* }}} */
138128

139-
/* {{{ Wraps the old gc handler */
140129
PHP_METHOD(SessionHandler, gc)
141130
{
142131
zend_long maxlifetime;
@@ -153,9 +142,7 @@ PHP_METHOD(SessionHandler, gc)
153142
}
154143
RETURN_LONG(nrdels);
155144
}
156-
/* }}} */
157145

158-
/* {{{ Wraps the old create_sid handler */
159146
PHP_METHOD(SessionHandler, create_sid)
160147
{
161148
zend_string *id;
@@ -170,4 +157,3 @@ PHP_METHOD(SessionHandler, create_sid)
170157

171158
RETURN_STR(id);
172159
}
173-
/* }}} */

0 commit comments

Comments
 (0)
Please sign in to comment.