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/03/05 09:32] – 6=>3 voting choices divinity76 | rfc:sleep_function_float_support [2024/03/08 08:00] (current) – backto6 divinity76 | ||
---|---|---|---|
Line 4: | Line 4: | ||
* 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 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 questions. Each question aims to gather community consensus on whether to implement the proposed enhancements and, if so, in which version | + | ### 1. Enhancement |
+ | **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?** | + | ### 2. Normalized Return Values on Windows |
- | - No | + | |
- | - PHP 8.4 | + | |
- | - PHP 9.0 | + | |
- | **2. Normalized Return Values | + | **Should we modify `sleep()` |
+ | - 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 | + | **Should we increase |
- | - 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:// | 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 101: | 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.1709631138.txt.gz · Last modified: 2024/03/05 09:32 by divinity76