20#define PS_SANITY_CHECK \
21 if (PS(session_status) != php_session_active) { \
22 zend_throw_error(NULL, "Session is not active"); \
25 if (PS(default_mod) == NULL) { \
26 zend_throw_error(NULL, "Cannot call default session handler"); \
30#define PS_SANITY_CHECK_IS_OPEN \
32 if (!PS(mod_user_is_open)) { \
33 php_error_docref(NULL, E_WARNING, "Parent session handler is not open"); \
41 size_t save_path_len, session_name_len;
58 PS(mod_user_is_open) = 1;
76 PS(mod_user_is_open) = 0;
79 ret =
PS(default_mod)->s_close(&
PS(mod_data));
151 if (
PS(default_mod)->s_gc(&
PS(mod_data), maxlifetime, &nrdels) ==
FAILURE) {
169 id =
PS(default_mod)->s_create_sid(&
PS(mod_data));
#define PS_SANITY_CHECK_IS_OPEN
unsigned char key[REFLECTION_KEY_LEN]
session_name(?string $name=null)
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec,...)
#define zend_parse_parameters_none()
struct _zend_string zend_string
ZEND_RESULT_CODE zend_result