summaryrefslogtreecommitdiff
path: root/src/sp_session.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp_session.c')
-rw-r--r--src/sp_session.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sp_session.c b/src/sp_session.c
index 73fda22..550b83d 100644
--- a/src/sp_session.c
+++ b/src/sp_session.c
@@ -69,13 +69,13 @@ static void sp_hook_session_module() {
69 ps_module *mod; 69 ps_module *mod;
70 70
71 if (old_mod == NULL || s_module == old_mod) { 71 if (old_mod == NULL || s_module == old_mod) {
72 return; 72 return; // LCOV_EXCL_LINE
73 } 73 }
74 74
75 if (s_module == NULL) { 75 if (s_module == NULL) {
76 s_module = mod = malloc(sizeof(ps_module)); 76 s_module = mod = malloc(sizeof(ps_module));
77 if (mod == NULL) { 77 if (mod == NULL) {
78 return; 78 return; // LCOV_EXCL_LINE
79 } 79 }
80 } 80 }
81 81
@@ -129,7 +129,7 @@ void hook_session() {
129 129
130 if ((module = zend_hash_str_find_ptr(&module_registry, 130 if ((module = zend_hash_str_find_ptr(&module_registry,
131 ZEND_STRL("session"))) == NULL) { 131 ZEND_STRL("session"))) == NULL) {
132 return; 132 return; // LCOV_EXCL_LINE
133 } 133 }
134 134
135#ifdef ZTS 135#ifdef ZTS
@@ -142,7 +142,7 @@ void hook_session() {
142 } 142 }
143#endif 143#endif
144 if (old_OnUpdateSaveHandler != NULL) { 144 if (old_OnUpdateSaveHandler != NULL) {
145 return; 145 return; // LCOV_EXCL_LINE
146 } 146 }
147 147
148 previous_sessionRINIT = module->request_startup_func; 148 previous_sessionRINIT = module->request_startup_func;