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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
34 + 6 = ?
Subscribe to this entry?

 
 [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 Sep 18 19:01:51 2019 UTC