On Thu, 2015-06-11 at 14:25 +0300, Andrew Kluev wrote: > sleep(3); [...] > This is a bug or something I do not know about php?
Max execution time is working a bit dependent on the operating system. On Windows it is using the elapsed time ("wall clock time") on Linux systems the CPU time. Thus on windows the sleep counts whereas on Linux no time is spent during sleep(). The same difference happens when other processes are on CPU and your PHP script was taken off CPU for other reasons. For details see MSDN on CreateTimerQueueTimer for Windows and the setitimer man page with (ITIMER_PROF option) for Linux/Unix for a start. https://msdn.microsoft.com/en-us/library/windows/desktop/ms682485% 28v=vs.85%29.aspx http://linux.die.net/man/2/setitimer johannes
signature.asc
Description: This is a digitally signed message part