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