We have a issue that just came to our notice, some of our developers used ini_set('memory_limit', -1) to over-ride the php.ini memory_limit settings in their code files.
Due to which sometimes our Memory/CPU usage is way far more than usual and we even have experienced server hanging/crashing many times.
Is there any way to restrict these changes for certain params like memory_limit, upload_max_filesize & post_max_size? Users should not be able to edit them after a certain limit set?
Sorry if i asked a dumb question, tried searching but there was no reference to this only found answers asking for increasing these parameters.