ini_set('memory_limit', '128M'); // Returns false; memory_limit unchanged
I wasn't able to find a list of things that can cause this. So far I checked:
- Safe mode: disabled
- disable_functions: Empty
- php_admin_value: None that I could find (is there a way to know for sure?)
I ran out of ideas! ini_set
works correctly with other parameters (such as "display_errors")
ini_set()
or justmemory_limit
? Does any value formemory_limit
fail, or just128M
? How are you verifying that the value is unchanged? I have noticed this behavior on a couple of servers over here as well, so I am very interested to see if we are experiencing the same problem. – Duppy