Hello everyone,
Since most people probably don't remember this weird piece of php, here's a link: www.php.net/manual/en/session.requirements.php
After checking all common distributions of php (Debian, Ubuntu, Fedora, RHEL, Arch, Alpine, Docker images), it seems that none of them enable the mm handler. Checked via php --ri session | grep Registered. The library the documentation says you do not need (but actually do need) is still included in Fedora and Ubuntu streams and manually enabling it is possible in NTS.
The last public mentions of it appear to go back to 2008 and after browsing through all the available documentation and explanations of it online, I still don't know what it is meant to do. Essentially, there is no documentation on it that doesn't 404 today.
Going with my intent to remove NTS as an option in 9.0, I would like to propose the removal of the mm handler, rather than making it thread safe.
To create the RFC, I would like to ask for wiki karma for the username 'henderkes'.
Thank you,
Marc
PS: if possible, direct removal would probably be better. I have not found a single resource in the public internet to suggest this option was in use anywhere. I'm not sure what the policy is on this.
Hi Marc,
Il 26/11/2026 13:58, Marc Henderkes ha scritto:
The last public mentions of it appear to go back to 2008 and after browsing through all the available documentation and explanations of it online, I still don't know what it is meant to do. Essentially, there is no documentation on it that doesn't 404 today.
I vaguely remember using it in the PHP4 days. Some digging in the internet archive brought me here:
https://web.archive.org/web/20070103015034/http://devzone.zend.com/node/view/id/1312
"mm. If you need higher performance, the mm module is a viable alternative; it stores the data in shared memory and is therefore not limited by the hardware I/O system."
The mm library has had its latest release 20 years ago:
https://manpages.ubuntu.com/manpages/resolute/man3/mm.3.html
Going with my intent to remove NTS as an option in 9.0, I would like to propose the removal of the mm handler, rather than making it thread safe.
I suppose deprecation in 8.7 + subsequent removal would be appropriate, but given its limitations (no locking) and how much faster is disk I/O nowadays, I don't think there would be any reason to use the "mm" handler today.
Cheers
Matteo Beccati
Quoted text · 9 lines
Hello everyone,
Since most people probably don't remember this weird piece of php, here's a link: www.php.net/manual/en/session.requirements.php
After checking all common distributions of php (Debian, Ubuntu, Fedora, RHEL, Arch, Alpine, Docker images), it seems that none of them enable the mm handler. Checked via
php --ri session | grep Registered. The library the documentation says you do not need (but actually do need) is still included in Fedora and Ubuntu streams and manually enabling it is possible in NTS.The last public mentions of it appear to go back to 2008 and after browsing through all the available documentation and explanations of it online, I still don't know what it is meant to do. Essentially, there is no documentation on it that doesn't 404 today.
Going with my intent to remove NTS as an option in 9.0, I would like to propose the removal of the mm handler, rather than making it thread safe.
To create the RFC, I would like to ask for wiki karma for the username 'henderkes'.
Thank you,
MarcPS: if possible, direct removal would probably be better. I have not found a single resource in the public internet to suggest this option was in use anywhere. I'm not sure what the policy is on this.
Yeah, for higher-performance session storage, there's now i.e. Redis. For a built-in in-memory alternative, David was looking at using glibc's hashtable to replace mm 1. I myself might be curious if i.e. sqlite could fill that role with a built-in session save handler.
Hello everyone,
PS: if possible, direct removal would probably be better. I have not found a single resource in the public internet to suggest this option was in use anywhere. I'm not sure what the policy is on this.
I think an RFC might be useful so we can point to it if people complain about it being removed without any warning. I can't think removing it would be controversial though, so it wouldn't spend oodles of time on it. Just pretty much what you had in this email ought to be enough, fit into the template.
Personally, I don't care either way.
cheers
Derick
Hello everyone,
+1 for removing mm.
I don't think any replacement is necessary. On Linux, setting session.save_path to a writable directory on tmpfs achieves memory-backed storage using the default files handler.
For macos or Windows, then there are existing extensions for Redis or Memcached.
Kind regards,
Jorg
Quoted text · 4 lines
Hello everyone,
+1 for removing mm.I don't think any replacement is necessary. On Linux, setting session.save_path to a writable directory on tmpfs achieves memory-backed storage using the default files handler.
For macos or Windows, then there are existing extensions for Redis or Memcached.
Well said, also +1 for removing it. At scale using Redis or Memcached is really the way to go anyway.
--
Ilia Alshanetsky
Technologist, CTO, Entrepreneur
E: ilia@ilia.ws
T: @iliaa
B: http://ilia.ws
Quoted text · 9 lines
Hello everyone,
Since most people probably don't remember this weird piece of php, here's a link: www.php.net/manual/en/session.requirements.php
After checking all common distributions of php (Debian, Ubuntu, Fedora, RHEL, Arch, Alpine, Docker images), it seems that none of them enable the mm handler. Checked via
php --ri session | grep Registered. The library the documentation says you do not need (but actually do need) is still included in Fedora and Ubuntu streams and manually enabling it is possible in NTS.The last public mentions of it appear to go back to 2008 and after browsing through all the available documentation and explanations of it online, I still don't know what it is meant to do. Essentially, there is no documentation on it that doesn't 404 today.
Going with my intent to remove NTS as an option in 9.0, I would like to propose the removal of the mm handler, rather than making it thread safe.
To create the RFC, I would like to ask for wiki karma for the username 'henderkes'.
Thank you,
MarcPS: if possible, direct removal would probably be better. I have not found a single resource in the public internet to suggest this option was in use anywhere. I'm not sure what the policy is on this.
I'm in favour of this, and considering nobody else seems to disagree with the removal I don't think an RFC is necessary.
Best regards,
Gina P. Banyard
Hi
I'm in favour of this, and considering nobody else seems to disagree with the removal I don't think an RFC is necessary.
Given that this is technically a user-facing breaking change not dissimilar to the unbundling of an extension, I think an RFC is necessary to follow proper procedure. As Derick noted, the RFC could just be a slim wrapper over what Marc already mentioned in this email thread. I don't care between deprecation or immediate removal, but I want to see an official vote.
Best regards
Tim Düsterhus
Hi,
Hi
I'm in favour of this, and considering nobody else seems to disagree with the removal I don't think an RFC is necessary.
Given that this is technically a user-facing breaking change not dissimilar to the unbundling of an extension, I think an RFC is necessary to follow proper procedure. As Derick noted, the RFC could just be a slim wrapper over what Marc already mentioned in this email thread. I don't care between deprecation or immediate removal, but I want to see an official vote.
Yeah I don't think it can be removed straight away without deprecation as it could potentially conflict with the policy. It's a bit on the edge as it's really just a build option as far as I see but I think the deprecation is better as it will give people that use it (if there still are any) that it will get dropped which is a bit nicer. It might be just easiest to add it to https://wiki.php.net/rfc/deprecations_php_8_7 though.
Kind regards
Jakub