Doc #78453 [NEW]: Document pcntl_signal's $siginfo array

From: Date: Sat, 24 Aug 2019 20:59:29 +0000
Subject: Doc #78453 [NEW]: Document pcntl_signal's $siginfo array
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16905@lists.php.net to get a copy of this message
From:             requinix
Operating system: 
PHP version:      Irrelevant
Package:          PCNTL related
Bug Type:         Documentation Problem
Bug description:Document pcntl_signal's $siginfo array

Description:
------------
The docs say
https://www.php.net/manual/en/function.pcntl-signal.php

> siginfo
> If operating systems supports siginfo_t structures, this will be an
array of
> signal information dependent on the signal.

and in the changelog
> As of PHP 7.1.0 the handler callback is given a second argument
containing the
> signinfo of the specific signal. This data is only supplied if the
operating
> system has the signinfo_t structure. If the OS does not implement
siginfo_t
> NULL is supplied.

(note: the page has a few "signinfo" typos)

but they don't give any more information than that.

Array keys according to PHP 7.4.0beta4:
https://github.com/php/php-src/blob/php-7.4.0beta4/ext/pcntl/pcntl.c#L1281

All signals:
* signo
* errno
* code

SIGCHLD:
* status
* utime - if available
* stime - if available
* pid
* uid

SIGUSR1, SIGUSR2:
* pid
* uid

SIGILL, SIGFPE, SIGSEGV, SIGBUS:
* addr

SIGPOLL:
* band
* fd - if available

Real-time signals (per SIGRTMIN/SIGRTMAX) - if available: (since PHP
7.2.16/7.3.3)
* pid
* uid


-- 
Edit bug report at https://bugs.php.net/bug.php?id=78453&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=78453&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=78453&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=78453&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=78453&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=78453&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=78453&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=78453&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=78453&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=78453&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=78453&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78453&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=78453&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=78453&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=78453&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=78453&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=78453&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=78453&r=mysqlcfg



Thread (1 message)

  • requinix@php.net
« previous php.doc.bugs (#16905) next »