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
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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: marcospassos dot com at gmail dot com
New email:
PHP Version: OS:

 

 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2019 The PHP Group
All rights reserved.
Last updated: Wed Jun 26 22:01:26 2019 UTC