|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [1999-12-03 12:27 UTC] andrei at cvs dot php dot net
  [2002-03-21 12:16 UTC] php dot net at chiefworks dot com
  [2002-03-21 12:19 UTC] rasmus@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 16:00:01 2025 UTC | 
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.