|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #71277 Add SIGRTMIN and SIGRTMAX consts and allow handler registration in pcntl_signal
Submitted: 2016-01-04 19:43 UTC Modified: 2019-07-30 08:29 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: php-bugs at dennis dot birkholz dot biz Assigned: nikic (profile)
Status: Closed Package: PCNTL related
PHP Version: Next Minor Version OS: Linux
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.
Block user comment
Status: Assign to:
Bug Type:
From: php-bugs at dennis dot birkholz dot biz
New email:
PHP Version: OS:


 [2016-01-04 19:43 UTC] php-bugs at dennis dot birkholz dot biz
POSIX defines so called real-time signals which are essentially signals without a specific meaning that are free to be used for any purpose.
These signals have numbers in the range from SIGRTMIN to SIGRTMAX and there are usually ~30 of them available (see for more information on real-time signals).

The required constants SIGRTMIN and SIGRTMAX are currently not available in PHP. In addition, pcntl_signal() has a hard coded upper limit of 32 for signal values so no signal handlers for these real-time signals can be registered even if they are passed in as numeric values (which is dangerous as some of the signals are used by the glibc POSIX threads implementation and the SIGRTMIN constant is adjusted dynamically to reflect that).

I have a pull request open at to implement that missing behaviour.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-08-24 17:00 UTC]
There is a pull request to fix this issue which has been ignored.
 [2019-07-30 08:29 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2019-07-30 08:29 UTC]
This was implemented in 7.2 I believe.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 18 05:01:31 2024 UTC