|  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
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 !
Your email address:
Solve the problem:
41 - 17 = ?
Subscribe to this entry?

 [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-2020 The PHP Group
All rights reserved.
Last updated: Tue Jul 14 16:01:25 2020 UTC