Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111652 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 40579 invoked from network); 20 Aug 2020 13:24:00 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Aug 2020 13:24:00 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 5915D1804DB for ; Thu, 20 Aug 2020 05:25:40 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from mail-ed1-f67.google.com (mail-ed1-f67.google.com [209.85.208.67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Thu, 20 Aug 2020 05:25:39 -0700 (PDT) Received: by mail-ed1-f67.google.com with SMTP id v22so1468708edy.0 for ; Thu, 20 Aug 2020 05:25:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Cj4euubpd0V5q+fsol9PcPDgpPZj+tqB3p1RVJAJdJA=; b=t0iW19pXxbI0j4pt7pLfeJ1cPxnDxuDgqXCHZltlAAnTmIUTJ8gwfIHlR28semXJwH /EmB3jJjkeH+p09iG0ZDmwk2+OnQDWuc9EtCXk4ysnXQxiD8XnFzET1jvudwxu3ket2/ Be7LRQ+xNGz8GLOfZdX4eA/4jidTA0M2xRGHVWJzH7U3d1dyZ2v9FVBPfA0aQo2Pm3B/ GVTB41b8aIVOSoH+Glzmig87fIwu2sEp8nILwBl0r7uDoth/z8IJFZBXMQXh14iQsH/A liTn0s9TdOUTBUvJA9oJxaiHT20CgLAstyYPBth9LtpERV/3pGXjV3Hme1E2m8n1DlAf PlCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Cj4euubpd0V5q+fsol9PcPDgpPZj+tqB3p1RVJAJdJA=; b=oZBBLar5o2NuDusPttAhxhOWCKGOMsHrgchLNoU49g3PZ6dIUnyUGFeyjnZ48Fn3iH M7SfAfWdKWcdHmHX9AVKwPY5JzCRE7ItLopI7v9kUFRkFamf1unW0gsemvYbTZRbqRRb bWVd5QFim0lqy8+Wy9G0Vv8l1EeEPHtogr1s1rTki7SZueXWw/7+9peHT/76UqIHREyq m2aqlUag1i8hH8L+TctXnXUHXH2nFbaXd/BPJmZCaEuvWILw/jcmWF2uUe1QQsgnAzsQ IghHt8xPbx8dk/CXND8lNT3++DKUlnMVvRcla9tc+lilSfc6+cQL8Zpt+3u6Khkxn1Ed dldg== X-Gm-Message-State: AOAM531cQkoQ+9OHSrtwpUwe3oJfjYKbxU9GeNwBY87kUWHhQMwyoRVQ 7XRHzjONHobFWe4+XBKgoBK2nJ9DCClfhfyp0d0= X-Google-Smtp-Source: ABdhPJx4y1O2+Lu7dFbeFSaFQxRJWLQWWJfeHhrYr398vm023gz4Beiv2GFZjv1dnxmgDgIjDDYG9MHJu8Zu3Ff36mI= X-Received: by 2002:aa7:ce90:: with SMTP id y16mr2686240edv.325.1597926337935; Thu, 20 Aug 2020 05:25:37 -0700 (PDT) MIME-Version: 1.0 References: <6cfb77d4d511b5c591e7d7b5cc80199955123b2cd4276a5bca2327e4b02942db@mahalux.com> <4a6d97c1-28e8-c6cb-e985-d32c5d056ec0@telia.com> In-Reply-To: Date: Thu, 20 Aug 2020 14:25:27 +0200 Message-ID: To: =?UTF-8?B?TWljaGFlbCBWb8WZw63FoWVrIC0gxIxWVVQgRkVM?= Cc: Sara Golemon , PHP internals Content-Type: multipart/alternative; boundary="000000000000bffebf05ad4e37d8" Subject: Re: [PHP-DEV] Allow sleep() to accept non-integer values From: george.banyard@gmail.com ("G. P. B.") --000000000000bffebf05ad4e37d8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Apologies for the double email, my client did something funcky. On Thu, 20 Aug 2020 at 14:22, G. P. B. wrote: > On Thu, 20 Aug 2020 at 14:15, Michael Vo=C5=99=C3=AD=C5=A1ek - =C4=8CVUT = FEL < > vorismi3@fel.cvut.cz> wrote: > >> Hi everyone, >> >> thank you for your comments, based on them, I fixed these: >> >> - usleep is now used as a fallback as well, if interrupted, remaining >> time is measured using microtime, so return value is always available >> >> - for BC, if not interrupted, return value remains to be 0 (integer >> zero) >> >> Now, the sleep() function should be really universal, cross platform and >> I would say also the prefered way to sleep. >> >> The implementaion is here https://github.com/php/php-src/pull/5961/files >> >> >> Please comment on Github directly if you have any feedback left. >> >> > I thinkit's worth considering if this also should be fixed in 8.0 or >> even earlier ;-)So good to hear the RM view on this. >> >> Sara, are you ok to include this in PHP 8.0 and do you require a RFC for >> it? >> >> With kind regards / Mit freundlichen Gr=C3=BC=C3=9Fen / S p=C5=99=C3=A1t= elsk=C3=BDm pozdravem, >> >> Michael Vo=C5=99=C3=AD=C5=A1ek >> > > Again, I personally don't understand why this could bypass the RFC process, as multiple people have already, me included, voiced their disagreement with this change. Secondly this change introduces another inconsistency, why can sleep accept a float but not usleep? If there is indeed a need for being able to specify a sleep in milliseconds I'd prefer the introduction of a msleep function then this change. Best regards George P. Banyard --000000000000bffebf05ad4e37d8--