Skip to content

Commit a680273

Browse files
thg2kGirgias
authored andcommitted
ext/session: code cleanup - use consistent pointer declarations
1 parent 7b16f81 commit a680273

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

ext/session/mod_user.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static void ps_call_handler(zval *func, int argc, zval *argv, zval *retval)
4747

4848
#define PSF(a) PS(mod_user_names).ps_##a
4949

50-
static zend_result verify_bool_return_type_userland_calls(const zval* value)
50+
static zend_result verify_bool_return_type_userland_calls(const zval *value)
5151
{
5252
/* Exit or exception in userland call */
5353
if (Z_TYPE_P(value) == IS_UNDEF) {

ext/session/session.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ PHPAPI void php_add_session_var(zend_string *name)
220220
}
221221
}
222222

223-
PHPAPI zval* php_set_session_var(zend_string *name, zval *state_val, php_unserialize_data_t *var_hash)
223+
PHPAPI zval *php_set_session_var(zend_string *name, zval *state_val, php_unserialize_data_t *var_hash)
224224
{
225225
IF_SESSION_VARS() {
226226
zval *sess_var = Z_REFVAL(PS(http_session_vars));
@@ -230,15 +230,15 @@ PHPAPI zval* php_set_session_var(zend_string *name, zval *state_val, php_unseria
230230
return NULL;
231231
}
232232

233-
PHPAPI zval* php_get_session_var(zend_string *name)
233+
PHPAPI zval *php_get_session_var(zend_string *name)
234234
{
235235
IF_SESSION_VARS() {
236236
return zend_hash_find(Z_ARRVAL_P(Z_REFVAL(PS(http_session_vars))), name);
237237
}
238238
return NULL;
239239
}
240240

241-
PHPAPI zval* php_get_session_var_str(const char *name, size_t name_len)
241+
PHPAPI zval *php_get_session_var_str(const char *name, size_t name_len)
242242
{
243243
IF_SESSION_VARS() {
244244
return zend_hash_str_find(Z_ARRVAL_P(Z_REFVAL(PS(http_session_vars))), name, name_len);

0 commit comments

Comments
 (0)