[PHP-DEV] PHP 4.0 Bug #2165: Bug in set_time_limit() From: christophe.massiot <email protected>
Date: 08/26/99

From: christophe.massiot <email protected>
Operating system: LinuxPPC R5/Linux 2.2.10
PHP version: 4.0 Latest CVS (26/08/1999)
PHP Bug Type: Misbehaving function
Bug description: Bug in set_time_limit()

The set_time_limit() function seems to be misbehaving. With the following
script :
<?
set_time_limit(9);
for ($i = 0; $i < 500000; $i++) {
  $table[] = $i;
}
?>

I get the output :

Content-Type: text/html

<br>
<b>Fatal error</b>: Maximum execution time of 60 seconds exceeded in <b>test.php</b> on line <b>3</b><br>

So first there is a cosmetic problem with the 60 (which is my php.ini default).
Second, the script seems to take much more time than 9 seconds
before this message is displayed.
Third, AFTER this message is displayed, the script still takes
CPU time for several seconds or even minutes with big
values of time_limit. I suppose it frees its data. Is there something
to do ?

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>