Want more features on Pastebin? Sign Up, it's FREE!
Guest

max_execution_limit

By: a guest on Sep 29th, 2012  |  syntax: PHP  |  size: 0.34 KB  |  views: 50  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. set_time_limit(1);
  4.  
  5. $i = 0;
  6.  
  7. ob_start();
  8.  
  9. function shutdown () {
  10.   $out = ob_get_clean();
  11.   echo "<div>out: <div style='color: blue;'>$out</div></div>";
  12. }
  13.  
  14. register_shutdown_function('shutdown');
  15.  
  16. echo '<div>max_execution_limit: ' . ini_get('max_execution_time') . '</div>';
  17.  
  18. while ($i < 10000000000000000) {
  19.     $i++;
  20. }
  21.  
  22. ?>
clone this paste RAW Paste Data