Commit a0336012739 for php.net
commit a0336012739b35630a32674a484a7023433bde27
Author: ndossche <7771979+ndossche@users.noreply.github.com>
Date: Tue Aug 4 20:58:56 2026 +0200
session: fix corruption in mod_mm
diff --git a/ext/session/mod_mm.c b/ext/session/mod_mm.c
index b997a2bdcff..75ee713e9f0 100644
--- a/ext/session/mod_mm.c
+++ b/ext/session/mod_mm.c
@@ -351,7 +351,7 @@ PS_READ_FUNC(mm)
&& ps_mm_key_exists(data, key) == FAILURE) {
/* key points to PS(id), but cannot change here. */
if (key) {
- efree(PS(id));
+ zend_string_release_ex(PS(id), false);
PS(id) = NULL;
}
PS(id) = PS(mod)->s_create_sid((void **)&data);