Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:122582 X-Original-To: internals@lists.php.net Delivered-To: internals@lists.php.net Received: from php-smtp4.php.net (php-smtp4.php.net [45.112.84.5]) by qa.php.net (Postfix) with ESMTPS id 92A5E1AD8F6 for ; Fri, 8 Mar 2024 08:13:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=php.net; s=mail; t=1709885598; bh=hzdES/sQmOfA/y1KPituRtyqOVga/kgikrsuihYWujg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Pr2YGf4BP99xKFLXfmv56q0S2DjSNpAdS66PjLUMFDOPwP13bnyfzzXpjuK9Hhntp 4mwaenF0f5s4ivUkg7TcaQDlUPlUmGq0HWM0po8rL4UHjTpM4n9wg+9lz1uxYEGD6E GbYoVlgT5zemml1fIe0v+0gi36N6tR+KlB7nAPuuouQspmZEkTQIe/gOS9FwwHJVuX JVnFeuvVhbjo6NMtGws4ZgYgOoIYcU9Dk6X9mUXS7flLXcePnZnlIQxbCFqBzi3RP9 z2n+FbVjGiOf6f6cfHThsNjlNxysfB7FddRkuPCS14fne/c9JLIiVOImv6dQypvimb IMtDobqgT632A== Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 9F7C818005D for ; Fri, 8 Mar 2024 08:13:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=4.0.0 X-Spam-Virus: No X-Envelope-From: Received: from mail-oo1-f41.google.com (mail-oo1-f41.google.com [209.85.161.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Fri, 8 Mar 2024 08:13:14 +0000 (UTC) Received: by mail-oo1-f41.google.com with SMTP id 006d021491bc7-5a0a19c9bb7so1120507eaf.3 for ; Fri, 08 Mar 2024 00:13:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709885579; x=1710490379; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=KZGTyak+N80+3ffV139Tq3HReSqlPzSqQOcu0LnbUtU=; b=jiYiPeUeBtJEEGFO6ZG83op/G4KEY+QZ79jdxEaIvxz1QGjIRSjrAAq4WQdpVRWlJf WBDAr9TZPHCh3W3rZOvMqdpK31dezSRB490fvRO3+2MlzId/6Gl4P1lfMcM98Slw1D0Q /yJtssiIOHuAs+fqsG6UGe/N9ck5hZk/kx7tdVMLdNbXl6y3yAz8vU5IwIKHL5w4RS5R /e3T4Vp76eVpvEsZRdE5mkSYFCnPxNyg52W6RqxHoRxb+cv8UOfMkuHmVk0kLC8mIx4f WmfUoPWFalDvzf2yxa2p4L332axNN/jGYaCVBGRG2A4ib0M+HIyU+ux5g7xyei3GqYhI UC8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709885579; x=1710490379; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=KZGTyak+N80+3ffV139Tq3HReSqlPzSqQOcu0LnbUtU=; b=NCo32cSb6rmlE8fX5dtmIWRpO5IOPQvW3tuAWlqYbEBkTYOt67x62DuOWFixdUal+n d8ws4ctx7Qo58RcJbh46fRwQB1R5rnea2a96BMSgR6ZNWudowytkofaSJRNIh6sW6Tc+ 3+1XE1DR2MjIN4uXDS9qiobDDaUo/RVhzARfWZSK4tNMSW/PLwWmnJfhsIqDyIB05BmV L0cWzIxYbv030bOiXMsv8MKz9ptKVeClHP81z+5/I3bhuHzFD2wjhHa+wcPLv000e/Er XqBgiWHM6jxOl8dYQ+wYv429GGbLnEinLRMZ2Sz1bax3bJ37f0kAH84E2XRnpbRh8AmJ dSKw== X-Gm-Message-State: AOJu0Yxnd9xqE7NQi6erixYFsq3Z21PYH4mC41LdV21he5dv60PHfRrQ 6zqnGGX/UiOEsmkPn/v8kjxB91865UBVNDEZY0HOpf2c4ugHh5KyHtRKbqOtWaYz7E88xioeWzD +MIBT4mGSZ7yw3ngdVVJHTt25fxMwCyou1OuEUQ== X-Google-Smtp-Source: AGHT+IEMyJHmkX6RqZMQr0oRKiGKSIQGSqtv8yeIlGKpT3f9E9mBi5TvYuTInkwpfFaCZeWkLTXMldDUAdZ+0OxAaqU= X-Received: by 2002:a05:6820:61d:b0:5a1:27ad:9b9d with SMTP id e29-20020a056820061d00b005a127ad9b9dmr12089391oow.1.1709885579413; Fri, 08 Mar 2024 00:12:59 -0800 (PST) Precedence: bulk list-help: list-post: List-Id: internals.lists.php.net MIME-Version: 1.0 References: <7d05d51f-f301-4d62-b1c0-83e6a2e0632e@bastelstu.be> In-Reply-To: Date: Fri, 8 Mar 2024 09:12:21 +0100 Message-ID: Subject: Re: [PHP-DEV] int|float for sleep? sleep(0.1) => sleep 0.1 seconds To: Larry Garfield Cc: php internals Content-Type: text/plain; charset="UTF-8" From: divinity76@gmail.com (Hans Henrik Bergan) On Tue, 5 Mar 2024 at 20:17, Larry Garfield wrote: > > A 3 way up-down vote doesn't make sense. What happens if none of the 3 options reaches 66%? > > The viable options here are a single RCV vote (which we've done before), or a single "Should we do this" vote that requires 66%, followed by a "when should we do this" vote with 2 options, majority wins. > > --Larry Garfield Does this work for you guys? ===== Proposed Voting Choices ===== ### 1. Enhancement of Precision: Float Arguments for Sub-Second Precision **Should we extend `sleep()` to accept floats for sub-second delays?** - Yes - No **Which PHP version should implement this feature if accepted?** - 8.4 - 9.0 ### 2. Normalized Return Values on Windows **Should we modify `sleep()` on Windows for consistent return values?** - Yes - No **Which PHP version should implement this feature if accepted?** - 8.4 - 9.0 ### 3. Enhanced Return Value Precision **Should we increase `sleep()` return value precision to include fractions of a second?** - Yes - No **Which PHP version should implement this feature if accepted?** - 8.4 - 9.0 @Tim >adding a short *nix explanation of when sleep will return earlier than expected would be helpful Where should that be? in the "Introduction" section? or the "Proposal" section? (or elsewhere?)