php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #75489 Allow fractions of second in pcntl_alarm
Submitted: 2017-11-06 14:37 UTC Modified: 2017-11-06 14:38 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:2 (100.0%)
From: marcospassos dot com at gmail dot com Assigned:
Status: Open Package: PCNTL related
PHP Version: 7.2.0RC5 OS:
Private report: No CVE-ID: None
 [2017-11-06 14:37 UTC] marcospassos dot com at gmail dot com
Description:
------------
Our use case and several found on the internet includes handling timeout with less than one second.

PHP Unit adopts the same approach:
https://github.com/sebastianbergmann/php-invoker/blob/master/src/Invoker.php

To prevent BC break, the function could accept an integer or a float to specify the time in seconds or a fraction of second respectively.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-11-06 14:38 UTC] marcospassos dot com at gmail dot com
-Summary: Add support for milliseconds in pcntl_alarm +Summary: Allow fractions of second in pcntl_alarm
 [2017-11-06 14:38 UTC] marcospassos dot com at gmail dot com
Fix title
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 04 12:01:30 2024 UTC