max_execute_time does not work on infinitely loop

From: Date: Mon, 19 Aug 2002 04:37:39 +0000
Subject: max_execute_time does not work on infinitely loop
Groups: php.general 
Request: Send a blank email to php-general+get-113174@lists.php.net to get a copy of this message
Hi all, I have set the max_execute_time in php.ini to 300 (5 mins). And i found that if my script have a infinitely loop( caused by careless programming), the script still executing even 5 mins is passed and uses up all my cpu resourse. Even i "stop" and close the browser, the script seen still running on the background. (I found the apache.exe is used up 99% of cpu resourse in window task manager) What i can do is restart the apache server. I use the following script to test the situation. <?php while (1<10){ $i=1;} ?> So is there any way to stop execution of php script? Since i have make a server for my friend to test his php script, sometime if his script have such a bad looping, the apache would hanged. I dont want to restart the server everytime since i;m not sitting in front my pc anytime. Thanks in advance Nowhereman from HK

« previous php.general (#113174) next »