From 63898e19a2050cb797e8f36e7389dbb553343af7 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 26 Dec 2018 12:14:47 +0100 Subject: Remove an unnecessary guard against infinite recursion in session handling This used to be useful in the times of PHP5.4/Suhosin (https://github.com/sektioneins/suhosin/issues/60), but nowadays, php is handling this case on its own. --- src/sp_session.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/sp_session.c') diff --git a/src/sp_session.c b/src/sp_session.c index b3db622..bd11557 100644 --- a/src/sp_session.c +++ b/src/sp_session.c @@ -93,13 +93,6 @@ static void sp_hook_session_module() { } static PHP_INI_MH(sp_OnUpdateSaveHandler) { - if (stage == PHP_INI_STAGE_RUNTIME && - SESSION_G(session_status) == php_session_none && s_original_mod && - zend_string_equals_literal(new_value, "user") == 0 && - strcmp(((ps_module *)s_original_mod)->s_name, "user") == 0) { - return SUCCESS; - } - SESSION_G(mod) = s_original_mod; int r = old_OnUpdateSaveHandler(entry, new_value, mh_arg1, mh_arg2, mh_arg3, -- cgit v1.3