Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:86594 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42221 invoked from network); 11 Jun 2015 11:43:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jun 2015 11:43:10 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.215.10 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.215.10 mail.experimentalworks.net Received: from [217.114.215.10] ([217.114.215.10:48233] helo=mail.experimentalworks.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BE/F0-35910-A4479755 for ; Thu, 11 Jun 2015 07:43:07 -0400 Received: by mail.experimentalworks.net (Postfix, from userid 1003) id 49E1B4BC5B; Thu, 11 Jun 2015 13:43:49 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on km31408.keymachine.de X-Spam-Level: * X-Spam-Status: No, score=1.4 required=4.0 tests=ALL_TRUSTED, DNS_FROM_AHBL_RHSBL autolearn=no version=3.3.2 X-Spam-HAM-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 2.4 DNS_FROM_AHBL_RHSBL RBL: Envelope sender listed in dnsbl.ahbl.org Received: from [192.168.2.34] (ppp-93-104-6-182.dynamic.mnet-online.de [93.104.6.182]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: johannes@schlueters.de) by mail.experimentalworks.net (Postfix) with ESMTPSA id 640854BC5B; Thu, 11 Jun 2015 13:43:46 +0200 (CEST) Message-ID: <1434022957.18853.14.camel@kuechenschabe> To: Andrew Kluev Cc: internals@lists.php.net Date: Thu, 11 Jun 2015 13:42:37 +0200 In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-vDQgIT+RNBPqd+iO2JBV" X-Mailer: Evolution 3.10.4-0ubuntu2 Mime-Version: 1.0 Subject: Re: [PHP-DEV] Some strange bug From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) --=-vDQgIT+RNBPqd+iO2JBV Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3Dvs.85%29.aspx http://linux.die.net/man/2/setitimer johannes --=-vDQgIT+RNBPqd+iO2JBV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAABAgAGBQJVeXQxAAoJEH3sTmn8nIPXzbAH/3AYINzglN/93U+MR3XtMK4f tIfBBoiRJt4nBmR/RtiaDbiWCdSgzCkegsZOBi45a5CNugmRbCjw1EbOe07XHm0a bbQ/AG0U2xIt2XOITQnzjKFxhufuMKpuRHz2wTRDrutn04TyW1C6ZZFQxWPGLlUZ nUlON38FjbZ3UkFIQBWNxz1NxQySKrxtQ8fLaYsnMm+yqOE8BJTNHadpoQmmZ4Mb vND8JKhokIFvkrV7q3VuCMWcRydTGc/K1zQn7nDx15AQ/SAeqo5leDzjVJ+d/TVm h04Rsprydqsxm9jkmI76wzhC5fRZUjasBdjToL8L93EEcHLG4b68B4P77hbhb5Y= =A3j2 -----END PGP SIGNATURE----- --=-vDQgIT+RNBPqd+iO2JBV--