|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-09-05 06:34 UTC] phpnet at shredzone dot de
I have a change request for set_time_limit() in combination with safe_mode. Instead of disallowing to set the time limit at all when safe_mode is activated, you could allow the program to *reduce* the time limit, compared to the default settings. It won't harm the server security if the developer explicitely wants his script to timeout in 10 seconds instead of 30 or maybe inifinite. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 12:00:01 2025 UTC |
We can not do this, as set_time_limit() resets the timer to 0 when it is called. Thus you can use "set_time_limit" at the end of your loop operation and still starve the server: <?php while (1) { $a = $a + 1; echo $a; set_time_limit(5); } ?> Derick