return FAILURE; \
}
+#define SESSION_CHECK_OUTPUT_STATE \
+ if (SG(headers_sent) && stage != ZEND_INI_STAGE_DEACTIVATE) { \
+ php_error_docref(NULL, E_WARNING, "Headers already sent. You cannot change the session module's ini settings at this time"); \
+ return FAILURE; \
+ }
+
#define APPLY_TRANS_SID (PS(use_trans_sid) && !PS(use_only_cookies))
-static void php_session_send_cookie(void);
-static void php_session_abort(void);
+static int php_session_send_cookie(void);
+static int php_session_abort(void);
+ /* Initialized in MINIT, readonly otherwise. */
+ static int my_module_number = 0;
+
/* Dispatched by RINIT and by php_session_destroy */
static inline void php_rinit_session_globals(void) /* {{{ */
{