rfc:sleep_function_float_support
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:sleep_function_float_support [2024/02/25 12:11] – php major vs php minor divinity76 | rfc: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), | * Author: Hans Henrik Bergan (hans@loltek.net), | ||
* Status: Draft | * Status: Draft | ||
- | * First Published at: http:// | + | * First Published at: http:// |
===== 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 choices. This expanded voting framework allows contributors to express their support or opposition to each enhancement both in the context | + | ### 1. Enhancement |
- | 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?** |
- | | + | - 8.4 |
- | | + | - 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 |
- | - **Yes**: Support modifying | + | - Yes |
- | | + | - No |
- | 4. **Normalized Return Values on Windows in PHP 9**: | + | **Which PHP version should implement this feature if accepted?** |
- | | + | - 8.4 |
- | | + | - 9.0 |
- | 5. **Return Value Precision | + | ### 3. Enhanced |
- | - **Yes**: Support enhancing the precision of the `sleep()` function' | + | |
- | - **No**: Oppose this change for the next minor version. | + | |
- | 6. **Return Value Precision Enhancement in PHP 9**: | + | **Should we increase |
- | - **Yes**: Support enhancing the precision of the `sleep()` | + | - Yes |
- | | + | - No |
- | Each vote will be considered independently, | + | **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:// | A pull request has already been submitted and is available for review at: https:// | ||
===== 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:// | - PHP Manual on `sleep()`: https:// | ||
- | ===== 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