|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2009-07-16 22:17 UTC] giunta dot gaetano at gmail dot com
Description: ------------ On windows vista, with apache 2.2.11, php 5.3.0 vc9 threadsafe, the max_execution_time ini parameter is read correctly (as shown by ini_get() and phpinfo()) but never used. After 60 secs, the script times out with the message "Fatal error: Maximum execution time of 60 seconds exceeded". Adding a set_time_limit() or ini_set() call solves the problem. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 12:00:01 2025 UTC |
Thanks for the tip, but I would not have opened the issue without checking first phpinfo(). As stated in the initial report, even ini_get('max_execution_time') reports the value of 300here's the script to reproduce the test: <pre> <?php echo 'timeout: '.ini_get('max_execution_time')."\n"; for ($i = 0; $i < 100; $i++) { echo $i.'. '; sleep(1); flush(); ob_flush(); } ?> and here follows the output: timeout: 300 0. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. Fatal error: Maximum execution time of 60 seconds exceeded in D:\htdocs\y.php on line 9