Bug #2560 Updated: max_execution_time is not accurate
| From: | php dot net at chiefworks dot com | Date: | Thu, 21 Mar 2002 17:16:16 +0000 |
| Subject: | Bug #2560 Updated: max_execution_time is not accurate | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-3067@lists.php.net to get a copy of this message | ||
ID: 2560
Updated by: php.net@chiefworks.com
Reported By: djm@web.us.uu.net
Status: Closed
Bug Type: Misbehaving function
Operating System: BSDI BSD/OS 4.0.1
PHP Version: 4.0 Beta 2
New Comment:
This bug is still present in PHP 4.1.2, exactly as described by djm
Previous Comments:
------------------------------------------------------------------------
[1999-12-03 12:27:55] andrei@cvs.php.net
Fixed in CVS by Rasmus.
------------------------------------------------------------------------
[1999-10-18 11:48:12] djm@web.us.uu.net
I'm using PHP 4.0B2 as a DSO with apache 1.3.9. In my httpd.conf I
have set
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
php_admin_flag safe_mode On
php_admin_value doc_root "/homes/www141/webtest"
php_admin_value open_basedir "/homes/www141/webtest"
php_admin_value safe_mode_exec_dir "/homes/www141/webtest/bin"
php_flag log_errors On
php_value error_log "/homes/www141/webtest/logs/php.log"
php_value max_execution_time 3
php_value memory_limit 8388608
When I run the following PHP script, it is not aborted before printing
the
second message, despite having run for more than 3 seconds. And it
takes about 13-18 wall clock seconds before PHP aborts the infinite
loop. Printing
phpinfo() confirms that max_execution_time is indeed set to 3.
<html><head><title>test of
max_execution_time</title></head><body>
<?
echo "before<p>\n"; sleep(10); echo "after<p>\n";
while (1) { $i++; }
?>
</body></html>
This is being run on a 450MHz server that's doing nothing else, so I
don't
think CPU contention is an issue.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=2560&edit=1