title: PHP looping through file internal error without logs
body: <p>I use <code>AJAX</code> to get some JSON data from a file on my server. </p>
  
  <p><strong>Server-side code</strong></p>
  
  <pre><code> $file = fopen($path); /*~1M rows and ~650MB file*/
  
   /*Headers*/
   $cols = fgetcsv($file);
   $cols[0] = 'id';  
  
   /*Loop through each line*/
   $file_arr = [];
   while (($line = fgetcsv($file)) !== FALSE) {
       $file_arr[] = array_combine($cols,$line);
       /*The code crashes somewhere during this loop*/
   }
   fclose($file);
  
  /*Returns some JSON*/
  </code></pre>
  
  <p>However, I get an Internal Error but there's nothing in the log file. I added some <code>Log::Info</code> through out my code and I have managed to find that the error is due to the loop but I cannot figure out what because I do not have log for the internal error.</p>