Expose session storage module locater and serialization function via PHPAPI

This commit is contained in:
Ilia Alshanetsky 2006-10-06 21:11:36 +00:00
parent f815a4ef10
commit b1d8f7e09d
2 changed files with 5 additions and 5 deletions

View file

@ -199,6 +199,9 @@ PHPAPI int php_session_register_serializer(const char *name,
PHPAPI void php_session_set_id(char *id TSRMLS_DC);
PHPAPI void php_session_start(TSRMLS_D);
PHPAPI ps_module *_php_find_ps_module(char *name TSRMLS_DC);
PHPAPI const ps_serializer *_php_find_ps_serializer(char *name TSRMLS_DC);
#define PS_ADD_VARL(name,namelen) do { \
php_add_session_var(name, namelen TSRMLS_CC); \
} while (0)

View file

@ -84,9 +84,6 @@ zend_function_entry session_functions[] = {
PHPAPI ZEND_DECLARE_MODULE_GLOBALS(ps);
static PHP_GINIT_FUNCTION(ps);
static ps_module *_php_find_ps_module(char *name TSRMLS_DC);
static const ps_serializer *_php_find_ps_serializer(char *name TSRMLS_DC);
#define SESSION_CHECK_ACTIVE_STATE \
if (PS(session_status) == php_session_active) { \
php_error_docref(NULL TSRMLS_CC, E_WARNING, "A session is active. You cannot change the session module's ini settings at this time."); \
@ -1104,7 +1101,7 @@ static void php_session_send_cookie(TSRMLS_D)
sapi_add_header_ex(ncookie.c, ncookie.len, 0, 0 TSRMLS_CC);
}
static ps_module *_php_find_ps_module(char *name TSRMLS_DC)
PHPAPI ps_module *_php_find_ps_module(char *name TSRMLS_DC)
{
ps_module *ret = NULL;
ps_module **mod;
@ -1119,7 +1116,7 @@ static ps_module *_php_find_ps_module(char *name TSRMLS_DC)
return ret;
}
static const ps_serializer *_php_find_ps_serializer(char *name TSRMLS_DC)
PHPAPI const ps_serializer *_php_find_ps_serializer(char *name TSRMLS_DC)
{
const ps_serializer *ret = NULL;
const ps_serializer *mod;