Hey folks, in this PR[1] it got mentioned that it could be beneficial to add a userland function that tells you how much memory there is still available for you to allocate. I am writing to ask for your opinion on this, because technically it should be doable with a few lines of user land code (see the change in the PR, at least for Linux). Nevertheless it could be nice to have such a function telling you how much memory there is left before the inevitable. I really don't know if that would be beneficial to any other case than these tests, but maybe there are some opinions here.
Kind regards Florian [1] https://github.com/php/php-src/pull/14895