ID:               48949
 User updated by:  giunta dot gaetano at gmail dot com
 Reported By:      giunta dot gaetano at gmail dot com
 Status:           Bogus
 Bug Type:         *General Issues
 Operating System: vista sp2
 PHP Version:      5.3.0
 New Comment:

here'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


Previous Comments:
------------------------------------------------------------------------

[2009-07-17 12:52:12] giunta dot gaetano at gmail dot com

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 300

------------------------------------------------------------------------

[2009-07-17 12:41:51] j...@php.net

Your php.ini isn't loaded. Use phpinfo() output to figure out which one
is actually used. No bug here.

------------------------------------------------------------------------

[2009-07-17 07:32:26] giunta dot gaetano at gmail dot com

max_execution_time=300 in php.ini (using apache sapi btw)

------------------------------------------------------------------------

[2009-07-16 22:24:20] paj...@php.net

And what's the value set in php.ini?

------------------------------------------------------------------------

[2009-07-16 22:17:27] 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.





------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48949&edit=1

Reply via email to