Req #75489 [Opn]: Allow fractions of second in pcntl_alarm

From: Date: Mon, 06 Nov 2017 14:38:10 +0000
Subject: Req #75489 [Opn]: Allow fractions of second in pcntl_alarm
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212480@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=75489&edit=1

 ID:                 75489
 User updated by:    marcospassos dot com at gmail dot com
 Reported by:        marcospassos dot com at gmail dot com
-Summary:            Add support for milliseconds in pcntl_alarm
+Summary:            Allow fractions of second in pcntl_alarm
 Status:             Open
 Type:               Feature/Change Request
 Package:            PCNTL related
 PHP Version:        7.2.0RC5
 Block user comment: N
 Private report:     N

 New Comment:

Fix title


Previous Comments:
------------------------------------------------------------------------
[2017-11-06 14:37:00] 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.



------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=75489&edit=1


Thread (2 messages)

« previous php.bugs (#212480) next »