I am trying to set memory_limit to 512M, but it's locekd to 256M.
ini_set('memory_limit','512M');
ini_get('memory_limit'); //> Returns: 256M
I have full control on my server. (it's a dedicated)
Please note that everything under 512M works.
ini_set('memory_limit','16M');
ini_get('memory_limit'); //> Returns: 16M
Solution
I found out why. in php.ini I had memory_limit = 256M
. Maybe this is considered as an upper limit