|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-03-10 08:25 UTC] ab@php.net
-Status: Open
+Status: Not a bug
[2016-03-10 08:25 UTC] ab@php.net
[2016-03-11 10:19 UTC] memoword at 163 dot com
[2016-11-14 11:43 UTC] berarma at hotmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 12:00:02 2025 UTC |
Description: ------------ The max_execution_time option in php.ini doesn't work in php built-in web server The environment is windows 7 sp1 x64 ultimate with php-5.6.19-nts-Win32-VC11-x86 I use a new php.ini-development as my php.ini file and set max_execution_time to zero. Then make the scripts below as index.php. Run the server: php -S localhost:8000 index.php Then visit localhost:8000 After 60s it doesn't work anymore, and shows 'Fatal error: Maximum execution time of 60 seconds exceeded in D:\********\index.php on line 4' Test script: --------------- <?php while(1) { echo date('H:i:s').'<br />'; sleep(5);ob_flush();flush();} Expected result: ---------------- As I set max-execution-time to zero, the script should run forever.However it only works for 60s. When I set max-execution-time to 600, it still only works for 60s. After 60s it doesn't work anymore, and shows 'Fatal error: Maximum execution time of 60 seconds exceeded in D:\********\index.php on line 4' Actual result: -------------- It stops after 60s. When I run the server with php -S localhost:8000 and visit localhost:8000 It doesn't stop anymore even my max-execution-time is only 5