Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:111651 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 38972 invoked from network); 20 Aug 2020 13:20:39 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 20 Aug 2020 13:20:39 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 861561804DB for ; Thu, 20 Aug 2020 05:22:19 -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-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (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:22:19 -0700 (PDT) Received: by mail-ed1-f50.google.com with SMTP id df16so1425835edb.9 for ; Thu, 20 Aug 2020 05:22:19 -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=HD6M4UUPEkJD8WjdNZ508qIalJaqhuSFxgg6CfB2/ZA=; b=p3rUtt1nrEnwhqBic9+DOc+XGywwcmf29M3G2psz1bel6FOEdfDDyVnCm4eN9+E9Iw qbOW3F6LLf/n/oKj5KDoE83/tHr8LA+UCxM38xOnkBZ5L7ZZLmXtYzuo+CJWSnzAY2E+ gn0yHmTyHFa/Iw3QVT/KUKXhJBoBdd7tDYhH1dvvtdlsEtOXvXrWxus+waT6lxEmo5JD kV08vz9CunTkHudT6lPw/MOLbJhX9ann/TvRY1hAUJJNEmOcUYpMI2QvIzlQRlbICQaN JsHXD7zLRpT9axBs/A2vH5sw6TKNwgy4Anm8ztcZD5qrIDMjMiTr767Di0tDCCXb+vnz NjhA== 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=HD6M4UUPEkJD8WjdNZ508qIalJaqhuSFxgg6CfB2/ZA=; b=EUmmSzEvgQr4j4f9uRm4PNaI9N+MBHU8QzoWsXGkZe2dzVp+kQTR1JqWa7SHAhB1gg 3mgiVOtbqOYdmF+emyYrrS+Mqv+5I7gWfmjNGFRW5SxW++fJNAGz6bfz/SldC2vusR95 wxvsAbVhA5fUhI1jc0BVEr+8I7NApVRBdcjHrg4ttdru0yN5BMVOmIh2G5w5SRH/luV+ wVnM1XrYOUZN2I4e9wA+2TvZWWZwMXor+SLYhNeh09V1rbEhJOeOqEUwEP91JjQxWvL7 jYwX6bR84A6r1ceIB586V2TSDkPZFjjJJZ9zL9jeJtTXnLMEzHm/P5tA9uIpvEFzVxRh CFvQ== X-Gm-Message-State: AOAM530Uz23h+VeTulMDc+cW/mz6mfHwendpcN73oaVSM+4iU9uDIp2K 49/S13+N4h6teFfJWV2Sw5vEfcmw/4VDuQyAhxs= X-Google-Smtp-Source: ABdhPJxJCrt7c3kSmMs8D6pWwn0rXSfuUWS6bEC/ix/C7f1pRMSdXdSreaUbDccBqWi05yxXCW1awgdCL6FrpA7d0+c= X-Received: by 2002:a05:6402:1a54:: with SMTP id bf20mr2651035edb.217.1597926137201; Thu, 20 Aug 2020 05:22:17 -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:22:06 +0200 Message-ID: To: =?UTF-8?B?TWljaGFlbCBWb8WZw63FoWVrIC0gxIxWVVQgRkVM?= Cc: Sara Golemon , PHP internals Content-Type: multipart/alternative; boundary="000000000000c909ae05ad4e2b32" Subject: Re: [PHP-DEV] Allow sleep() to accept non-integer values From: george.banyard@gmail.com ("G. P. B.") --000000000000c909ae05ad4e2b32 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 20 Aug 2020 at 14:15, Michael Vo=C5=99=C3=AD=C5=A1ek - =C4=8CVUT FE= L < 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=A1te= lsk=C3=BDm pozdravem, > > Michael Vo=C5=99=C3=AD=C5=A1ek > --000000000000c909ae05ad4e2b32--