Re: Some strange bug
| From: | Johannes Schlüter | Date: | Thu, 11 Jun 2015 11:42:37 +0000 |
| Subject: | Re: Some strange bug | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-86594@lists.php.net to get a copy of this message | ||
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
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc