title: PHP: Does ini_set("memory_limit","1024M"); implicitly relase memory resources on PHP script execution end?
body: <p>Upload Big files to EC2 Server,
  my configuration are:</p>
  
  <pre><code>ini_set("display_errors",1);
  ini_set("memory_limit","1024M");
  ini_set('upload_max_filesize', '500M');
  ini_set('post_max_size', '5000M');
  ini_set('max_input_time', 300);
  ini_set('max_execution_time', 0);
  </code></pre>
  
  <p>it's working fine </p>
  
  <p>But will the <strong>script automatically free all the resource associated</strong> with it </p>
  
  <p>or <strong>Programmer should free resource explicitly</strong></p>
  
  <p>What default(best) values a Programmer should set</p>