title: php sleep() function not work properly inside a function
body: <p>I have a share host and I run following script on <strong>public_html/testsleep.php</strong> file:</p>
  
  <pre><code>$i = 0;
  while(true) {
      sleep(15);
      echo '1';
      if ($i++ &gt; 3) {
          break;
      }
  }
  </code></pre>
  
  <p>it work properly,
  but when i move this script inside a <strong>laravel</strong> class, for example in <strong>AdminController</strong> it does not work more that 10 second and it exit without any error message</p>
  
  <p>Any Idea?</p>
  
  <h2>EDIT</h2>
  
  <p>My code in <strong>AdminController</strong>:</p>
  
  <pre><code>$i = 0;
  while(true) {
      Log::info('work');
      sleep(15);
      Log::info('nottttttttttttttt work');
      if ($i++ &gt; 3) {
          break;
      }
  }
  </code></pre>