Lines Matching refs:mod
133 PS(mod)->s_close(&PS(mod_data)); in php_rshutdown_session_globals()
161 if (PS(id) && PS(mod)->s_destroy(&PS(mod_data), PS(id)) == FAILURE) { in php_session_destroy()
370 PS(mod)->s_gc(&PS(mod_data), PS(gc_maxlifetime), &num); in php_session_gc()
375 PS(mod)->s_gc(&PS(mod_data), PS(gc_maxlifetime), &num); in php_session_gc()
387 if (!PS(mod)) { in php_session_initialize()
394 if (PS(mod)->s_open(&PS(mod_data), PS(save_path), PS(session_name)) == FAILURE in php_session_initialize()
399 …php_error_docref(NULL, E_WARNING, "Failed to initialize storage module: %s (path: %s)", PS(mod)->s… in php_session_initialize()
409 PS(id) = PS(mod)->s_create_sid(&PS(mod_data)); in php_session_initialize()
413 …zend_throw_error(NULL, "Failed to create session ID: %s (path: %s)", PS(mod)->s_name, PS(save_path… in php_session_initialize()
420 } else if (PS(use_strict_mode) && PS(mod)->s_validate_sid && in php_session_initialize()
421 PS(mod)->s_validate_sid(&PS(mod_data), PS(id)) == FAILURE in php_session_initialize()
426 PS(id) = PS(mod)->s_create_sid(&PS(mod_data)); in php_session_initialize()
442 if (PS(mod)->s_read(&PS(mod_data), PS(id), &val, PS(gc_maxlifetime)) == FAILURE) { in php_session_initialize()
446 …php_error_docref(NULL, E_WARNING, "Failed to read session data: %s (path: %s)", PS(mod)->s_name, P… in php_session_initialize()
481 && PS(mod)->s_update_timestamp in php_session_save_current_state()
482 && PS(mod)->s_update_timestamp != php_session_update_timestamp in php_session_save_current_state()
485 ret = PS(mod)->s_update_timestamp(&PS(mod_data), PS(id), val, PS(gc_maxlifetime)); in php_session_save_current_state()
487 ret = PS(mod)->s_write(&PS(mod_data), PS(id), val, PS(gc_maxlifetime)); in php_session_save_current_state()
491 ret = PS(mod)->s_write(&PS(mod_data), PS(id), ZSTR_EMPTY_ALLOC(), PS(gc_maxlifetime)); in php_session_save_current_state()
500 PS(mod)->s_name, in php_session_save_current_state()
511 PS(mod)->s_close(&PS(mod_data)); in php_session_save_current_state()
565 PS(default_mod) = PS(mod); in PHP_INI_MH()
566 PS(mod) = tmp; in PHP_INI_MH()
1391 const ps_module **mod; in _php_find_ps_module() local
1394 for (i = 0, mod = ps_modules; i < MAX_MODULES; i++, mod++) { in _php_find_ps_module()
1395 if (*mod && !strcasecmp(name, (*mod)->s_name)) { in _php_find_ps_module()
1396 ret = *mod; in _php_find_ps_module()
1407 const ps_serializer *mod; in _php_find_ps_serializer() local
1409 for (mod = ps_serializers; mod->name; mod++) { in _php_find_ps_serializer()
1410 if (!strcasecmp(name, mod->name)) { in _php_find_ps_serializer()
1411 ret = mod; in _php_find_ps_serializer()
1516 if (!PS(mod) && value) { in php_session_start()
1517 PS(mod) = _php_find_ps_module(value); in php_session_start()
1518 if (!PS(mod)) { in php_session_start()
1639 PS(mod)->s_close(&PS(mod_data)); in php_session_abort()
1914 if (PS(mod) && PS(mod)->s_name) { in PHP_FUNCTION()
1915 RETVAL_STRING(PS(mod)->s_name); in PHP_FUNCTION()
1932 PS(mod)->s_close(&PS(mod_data)); in PHP_FUNCTION()
2067 if (PS(session_status) != php_session_active && (!PS(mod) || PS(mod) != &ps_mod_user)) { in PHP_FUNCTION()
2100 if (!PS(mod) || PS(mod) != &ps_mod_user) { in PHP_FUNCTION()
2209 if (PS(mod)->s_destroy(&PS(mod_data), PS(id)) == FAILURE) { in PHP_FUNCTION()
2210 PS(mod)->s_close(&PS(mod_data)); in PHP_FUNCTION()
2213 …ULL, E_WARNING, "Session object destruction failed. ID: %s (path: %s)", PS(mod)->s_name, PS(save_p… in PHP_FUNCTION()
2221 ret = PS(mod)->s_write(&PS(mod_data), PS(id), data, PS(gc_maxlifetime)); in PHP_FUNCTION()
2224 ret = PS(mod)->s_write(&PS(mod_data), PS(id), ZSTR_EMPTY_ALLOC(), PS(gc_maxlifetime)); in PHP_FUNCTION()
2227 PS(mod)->s_close(&PS(mod_data)); in PHP_FUNCTION()
2229 …php_error_docref(NULL, E_WARNING, "Session write failed. ID: %s (path: %s)", PS(mod)->s_name, PS(s… in PHP_FUNCTION()
2233 PS(mod)->s_close(&PS(mod_data)); in PHP_FUNCTION()
2243 if (PS(mod)->s_open(&PS(mod_data), PS(save_path), PS(session_name)) == FAILURE) { in PHP_FUNCTION()
2246 zend_throw_error(NULL, "Failed to open session: %s (path: %s)", PS(mod)->s_name, PS(save_path)); in PHP_FUNCTION()
2251 PS(id) = PS(mod)->s_create_sid(&PS(mod_data)); in PHP_FUNCTION()
2255 …zend_throw_error(NULL, "Failed to create new session ID: %s (path: %s)", PS(mod)->s_name, PS(save_… in PHP_FUNCTION()
2260 …if ((!PS(mod_user_implemented) && PS(mod)->s_validate_sid) || !Z_ISUNDEF(PS(mod_user_names).name.p… in PHP_FUNCTION()
2263 while (limit-- && PS(mod)->s_validate_sid(&PS(mod_data), PS(id)) == SUCCESS) { in PHP_FUNCTION()
2265 PS(id) = PS(mod)->s_create_sid(&PS(mod_data)); in PHP_FUNCTION()
2267 PS(mod)->s_close(&PS(mod_data)); in PHP_FUNCTION()
2270 …zend_throw_error(NULL, "Failed to create session ID by collision: %s (path: %s)", PS(mod)->s_name,… in PHP_FUNCTION()
2279 if (PS(mod)->s_read(&PS(mod_data), PS(id), &data, PS(gc_maxlifetime)) == FAILURE) { in PHP_FUNCTION()
2280 PS(mod)->s_close(&PS(mod_data)); in PHP_FUNCTION()
2283 …zend_throw_error(NULL, "Failed to create(read) session ID: %s (path: %s)", PS(mod)->s_name, PS(sav… in PHP_FUNCTION()
2325 new_id = PS(mod)->s_create_sid(&PS(mod_data)); in PHP_FUNCTION()
2326 …if (!PS(mod)->s_validate_sid || (PS(mod_user_implemented) && Z_ISUNDEF(PS(mod_user_names).name.ps_… in PHP_FUNCTION()
2330 if (PS(mod)->s_validate_sid(&PS(mod_data), new_id) == SUCCESS) { in PHP_FUNCTION()
2701 PS(mod) = NULL; in php_rinit_session()
2707 PS(mod) = _php_find_ps_module(value); in php_rinit_session()
2720 if (PS(mod) == NULL || PS(serializer) == NULL) { in php_rinit_session()
2773 ps_globals->mod = NULL; in PHP_GINIT_FUNCTION()
2857 const ps_module **mod; in PHP_MINFO_FUNCTION() local
2864 for (i = 0, mod = ps_modules; i < MAX_MODULES; i++, mod++) { in PHP_MINFO_FUNCTION()
2865 if (*mod && (*mod)->s_name) { in PHP_MINFO_FUNCTION()
2866 smart_str_appends(&save_handlers, (*mod)->s_name); in PHP_MINFO_FUNCTION()