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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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: Mon Jun 24 19:01:25 2019 UTC