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/02/25 12:11] – php major vs php minor divinity76rfc:sleep_function_float_support [2024/03/08 08:00] (current) – backto6 divinity76
Line 1: Line 1:
 ====== PHP RFC: Support for Floats in Sleep Function ====== ====== PHP RFC: Support for Floats in Sleep Function ======
-  * Version: 0.1-dev+  * Version: 0.2-dev
   * Date: 2024-02-25   * Date: 2024-02-25
   * 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 41: Line 41:
  
 ===== Proposed PHP Version(s) ===== ===== Proposed PHP Version(s) =====
-This feature is proposed for the next minor PHP version following the acceptance of this RFC. +Next PHP Minor (currently 8.4) and next PHP Major (currently PHP9)
-Currently PHP8.4.+
  
 ===== RFC Impact ===== ===== RFC Impact =====
  
 ==== 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.
- 
-===== Unaffected PHP Functionality ===== 
-(guess this section should be removed?) 
- 
-===== Future Scope ===== 
-N/A 
-(guess this section should be removed?) 
- 
- 
  
 ===== Proposed Voting Choices ===== ===== Proposed Voting Choices =====
  
-To accommodate the potential impact and preferences regarding the implementation timeline of the proposed enhancements to the `sleep()` function, voting will be structured into six separate choicesThis expanded voting framework allows contributors to express their support or opposition to each enhancement both in the context of the next minor version of PHP and for inclusion in PHP 9, the next major version. This approach ensures a nuanced evaluation of each proposal's merits, based on its immediate and long-term benefits to the PHP language.+### 1Enhancement of Precision: Float Arguments for Sub-Second Precision
  
-The six voting choices are outlined as follows:+**Should we extend `sleep()` to accept floats for sub-second delays?** 
 +- Yes 
 +- No
  
-1. **Acceptance of Float Arguments for Sub-Second Precision in PHP's Next Minor Version**: +**Which PHP version should implement this feature if accepted?** 
-   **Yes**: Support extending the `sleep()` function to accept both integers and floats, enabling delays with sub-second precision, for the next minor version of PHP+8.4 
-   **No**: Oppose this change for the next minor version.+9.0
  
-2. **Acceptance of Float Arguments for Sub-Second Precision in PHP 9**: +### 2. Normalized Return Values on Windows
-   - **Yes**: Support extending the `sleep()` function to accept both integers and floats, enabling delays with sub-second precision, for PHP 9. +
-   - **No**: Oppose this change for PHP 9.+
  
-3. **Normalized Return Values on Windows in PHP's Next Minor Version**: +**Should we modify `sleep()` on Windows for consistent return values?** 
-   - **Yes**: Support modifying `sleep()` on Windows to return the number of seconds remaining upon interruption for the next minor version of PHP. +- Yes 
-   **No**: Oppose this change for the next minor version.+- No
  
-4. **Normalized Return Values on Windows in PHP 9**: +**Which PHP version should implement this feature if accepted?** 
-   **Yes**: Support modifying `sleep()` on Windows to return the number of seconds remaining upon interruption for PHP 9+8.4 
-   **No**: Oppose this change for PHP 9.+- 9.0
  
-5**Return Value Precision Enhancement in PHP's Next Minor Version**: +### 3Enhanced Return Value Precision
-   - **Yes**: Support enhancing the precision of the `sleep()` function's return value to include fractions of a second when sleep is interrupted for the next minor version of PHP. +
-   - **No**: Oppose this change for the next minor version.+
  
-6. **Return Value Precision Enhancement in PHP 9**: +**Should we increase `sleep()` return value precision to include fractions of a second?** 
-   - **Yes**: Support enhancing the precision of the `sleep()` function'return value to include fractions of a second when sleep is interrupted for PHP 9. +- Yes 
-   **No**: Oppose this change for PHP 9.+- No
  
-Each vote will be considered independently, allowing for a detailed and specific understanding of the community's preferences regarding the timing and scope of these enhancements.+**Which PHP version should implement this feature if accepted?** 
 +- 8.
 +- 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 116: 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.1708863084.txt.gz · Last modified: 2024/02/25 12:11 by divinity76