mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Refactor session (incompleted)
This commit is contained in:
parent
e82f112468
commit
c9bca5039b
4 changed files with 325 additions and 336 deletions
|
@ -85,8 +85,8 @@ PHP_METHOD(SessionHandler, read)
|
|||
return;
|
||||
}
|
||||
|
||||
RETVAL_STRINGL(val, val_len, 1);
|
||||
str_efree(val);
|
||||
RETVAL_STRINGL(val, val_len);
|
||||
efree(val);
|
||||
return;
|
||||
}
|
||||
/* }}} */
|
||||
|
@ -154,6 +154,8 @@ PHP_METHOD(SessionHandler, create_sid)
|
|||
|
||||
id = PS(default_mod)->s_create_sid(&PS(mod_data), NULL TSRMLS_CC);
|
||||
|
||||
RETURN_STRING(id, 0);
|
||||
//????
|
||||
RETVAL_STRING(id);
|
||||
efree(id);
|
||||
}
|
||||
/* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue