title: Setting MAX_EXECUTION_TIME on codeigniter class doesn't work
body: <p>Putting the instruction <code>ini_set('MAX_EXECUTION_TIME', '-1')</code> either at the top of the script or at the top of a time greedy function (like in the code down below) doesn't seem to work and I always get the following error:</p>
  
  <blockquote>
    <p><strong>Fatal error</strong>: Maximum execution time of 300 seconds exceeded</p>
  </blockquote>
  
  <p>Where should the instruction be placed? </p>
  
  <pre><code>public function generate_no_pass_link()
  {
      ini_set('MAX_EXECUTION_TIME', '-1');
      $encoder = $this-&gt;di-&gt;find('ssl_cipher');
      $storage = $this-&gt;di-&gt;find('storage');
      $salt = $storage-&gt;executeSQL("select text from translations where entity='Salt'", \PDO::FETCH_ASSOC)[0]['text'];
  
      $url = 'https://mydomain/usuario/actualizar_datos/';
      $sql = "select id from clients where state=512 and created_at between  1514764801 and 1559347199";
      $result = $storage-&gt;executeSQL($sql);
  
      try{
          foreach($result as $id){
              $client = $storage-&gt;findOneBy('Client',array('id'=&gt;$id));
              $link = $url . urlencode($encoder-&gt;encode($client-&gt;getEmail(), $salt));
              $client-&gt;setLogin_link($link);
              $storage-&gt;persist($client);
              $storage-&gt;flush();
          }
      }catch(Exception $e){
          echo $e-&gt;getMessage();
      }
      echo "Links generados con éxito";
  }
  </code></pre>