From:             [EMAIL PROTECTED] 
Operating system: win ME
PHP version:      4.2.0
PHP Bug Type:     Reproducible crash
Bug description:  sleep function doesnt work correctly

The time limit doesnt work correctly 
when PHP sleeps this time IS included when determining the maximum time
that the script has been running  


the manual states:
The set_time_limit() function and the configuration directive
max_execution_time only affect the execution time of the script itself.
Any time spent on activity that happens outside the execution of the
script such as system calls using system(), the sleep() function, database
queries, etc. is not included when determining the maximum time that the
script has been running. 

if you want to reproduce the problem just run this few lines
and you will see it never never echos "after sleep"


<?php
echo "before sleep";
set_time_limit(5);
sleep(6);
echo "after sleep";
?>



-- 
Edit bug report at http://bugs.php.net/?id=17013&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17013&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17013&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17013&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17013&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17013&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17013&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17013&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17013&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17013&r=globals

Reply via email to