I would like to know why php (I'm using 5.5) doesn't stop this script with a fatal error. Thanks.
<?
set_time_limit(5);
ini_set('max_execution_time', 5);
echo 'hi';
for ($i = 0; $i < 10; $i++){
sleep(1);
}
echo '<br>bye';
?>
The output of the script is:
hi<br>bye
Without any errors or warnings.
From the PHP docs:
To paraphrase this documentation answer, it basically means that
sleep()
is not a time consuming function in Linux.