rfc:sleep_function_float_support

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
rfc:sleep_function_float_support [2024/03/05 09:32] – 6=>3 voting choices divinity76rfc:sleep_function_float_support [2024/03/08 08:00] (current) – backto6 divinity76
Line 4: Line 4:
   * Author: Hans Henrik Bergan (hans@loltek.net), Michael Voříšek (?)   * Author: Hans Henrik Bergan (hans@loltek.net), Michael Voříšek (?)
   * Status: Draft   * Status: Draft
-  * First Published at: http://wiki.php.net/rfc/sleep_function_float_support+  * First Published at: http://wiki.php.net/rfc/sleep_function_float_support , https://github.com/php/php-src/pull/13401
  
 ===== Introduction ===== ===== Introduction =====
Line 46: Line 46:
  
 ==== To SAPIs ==== ==== To SAPIs ====
 +
 No impact on SAPIs is anticipated. No impact on SAPIs is anticipated.
  
 ==== To Existing Extensions ==== ==== To Existing Extensions ====
 +
 No existing extensions are expected to be affected by this change. No existing extensions are expected to be affected by this change.
  
 ==== To Opcache ==== ==== To Opcache ====
 +
 No impact on Opcache is anticipated. No impact on Opcache is anticipated.
  
 ==== New Constants ==== ==== New Constants ====
 +
 No new constants will be introduced by this RFC. No new constants will be introduced by this RFC.
  
 ==== php.ini Defaults ==== ==== php.ini Defaults ====
 +
 This RFC does not introduce or alter any php.ini settings. This RFC does not introduce or alter any php.ini settings.
  
 ===== Open Issues ===== ===== Open Issues =====
 +
 There are no open issues related to this RFC. There are no open issues related to this RFC.
  
 ===== Proposed Voting Choices ===== ===== Proposed Voting Choices =====
  
-The voting will be organized into three main questionsEach question aims to gather community consensus on whether to implement the proposed enhancements and, if so, in which version of PHP these changes should be applied.+### 1Enhancement of Precision: Float Arguments for Sub-Second Precision
  
 +**Should we extend `sleep()` to accept floats for sub-second delays?**
 +- Yes
 +- No
  
-**1. Float Arguments for Sub-Second Precision**+**Which PHP version should implement this feature if accepted?** 
 +- 8.4 
 +- 9.0
  
-**Extend `sleep()` to accept floats for sub-second delays?** +### 2Normalized Return Values on Windows
-  - No +
-  - PHP 8.+
-  - PHP 9.0+
  
-**2. Normalized Return Values on Windows**+**Should we modify `sleep()` on Windows for consistent return values?** 
 +- Yes 
 +- No
  
-**Modify `sleep()` on Windows for consistent return values?** +**Which PHP version should implement this feature if accepted?** 
-  No +- 8.4 
-  - PHP 8.4 +- 9.0
-  PHP 9.0+
  
-**3. Enhanced Return Value Precision**+### 3. Enhanced Return Value Precision
  
-**Increase `sleep()` return value precision to include fractions of a second?** +**Should we increase `sleep()` return value precision to include fractions of a second?** 
-  No +Yes 
-  PHP 8.4 +No
-  - PHP 9.0+
  
 +**Which PHP version should implement this feature if accepted?**
 +- 8.4
 +- 9.0
  
  
 ===== Patches and Tests ===== ===== Patches and Tests =====
 +
 A pull request has already been submitted and is available for review at: https://github.com/php/php-src/pull/13401 A pull request has already been submitted and is available for review at: https://github.com/php/php-src/pull/13401
  
 ===== Implementation ===== ===== Implementation =====
 +
 Upon acceptance, the feature will be merged into the specified PHP version, and all relevant documentation will be updated accordingly. Upon acceptance, the feature will be merged into the specified PHP version, and all relevant documentation will be updated accordingly.
  
Line 101: Line 114:
 - PHP Manual on `sleep()`: https://www.php.net/manual/en/function.sleep.php - PHP Manual on `sleep()`: https://www.php.net/manual/en/function.sleep.php
  
-===== Rejected Features ===== +
-N/A +
-(guess this section should be removed?)+
rfc/sleep_function_float_support.1709631138.txt.gz · Last modified: 2024/03/05 09:32 by divinity76