Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions UPGRADING.INTERNALS
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ PHP 8.7 INTERNALS UPGRADE NOTES
. The MYSQLND_STATS_LOCK() and MYSQLND_STATS_UNLOCK() macros were removed.
MYSQLND_STATS_UPDATE_VALUE() is now an expression instead of a block.

- Session:
. The module_number member of php_ps_globals was removed.

- Standard:
. php_explode() now takes a HashTable* instead of a zval* to store the
resulting parts. It already expected the zval* to be IS_ARRAY.
Expand Down
1 change: 0 additions & 1 deletion ext/session/php_session.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ typedef struct _php_ps_globals {
bool set_handler; /* state if session module i setting handler or not */
zend_string *session_started_filename;
uint32_t session_started_lineno;
int module_number;
php_random_status_state_pcgoneseq128xslrr64 random_state;
php_random_algo_with_state random;
zend_long gc_probability;
Expand Down
5 changes: 1 addition & 4 deletions ext/session/session.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ static inline void php_rinit_session_globals(void)
PS(mod_user_uses_object_methods_as_handlers) = false;
PS(define_sid) = true;
PS(session_vars) = NULL;
PS(module_number) = my_module_number;
PS(in_rfc1867_update) = false;
ZVAL_UNDEF(&PS(http_session_vars));
PS(session_started_filename) = NULL;
Expand Down Expand Up @@ -1705,7 +1704,7 @@ static void proposed_session_id_to_session_id(const zval *proposed_session_id) {

PHPAPI zend_result php_session_reset_id(void)
{
int module_number = PS(module_number);
int module_number = my_module_number;
zval *sid, *data, *potential_session_id;
bool apply_trans_sid;

Expand Down Expand Up @@ -3075,9 +3074,7 @@ static PHP_MINIT_FUNCTION(session)
zend_register_auto_global(zend_string_init_interned(ZEND_STRL("_SESSION"), true), false, NULL);

my_module_number = module_number;
PS(module_number) = module_number;

PS(session_status) = php_session_none;
REGISTER_INI_ENTRIES();

#ifdef HAVE_LIBMM
Expand Down
Loading