From eca7bd1e8f03afcc0b3726cf863ada0cb679296c Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 11 Nov 2022 19:15:58 +0000 Subject: [PATCH] Fix GH-9923: Add the `SIGINFO` constant in pcntl for system supporting it. --- ext/pcntl/pcntl.stub.php | 7 +++++++ ext/pcntl/pcntl_arginfo.h | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ext/pcntl/pcntl.stub.php b/ext/pcntl/pcntl.stub.php index f50d48edbf652..7a1aabaacdeeb 100644 --- a/ext/pcntl/pcntl.stub.php +++ b/ext/pcntl/pcntl.stub.php @@ -224,6 +224,13 @@ */ const SIGPWR = UNKNOWN; #endif +#ifdef SIGINFO +/** + * @var int + * @cvalue LONG_CONST(SIGINFO) + */ +const SIGINFO = UNKNOWN; +#endif #ifdef SIGSYS /** * @var int diff --git a/ext/pcntl/pcntl_arginfo.h b/ext/pcntl/pcntl_arginfo.h index e29098f2fa689..44f0dcdc363bd 100644 --- a/ext/pcntl/pcntl_arginfo.h +++ b/ext/pcntl/pcntl_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: c4d254eda16f8cb94f077adc4fe0866b4ad3872a */ + * Stub hash: 3b03373d1bb68de779baaa62db14d98ca9018339 */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_fork, 0, 0, IS_LONG, 0) ZEND_END_ARG_INFO() @@ -289,6 +289,9 @@ static void register_pcntl_symbols(int module_number) #if defined(SIGPWR) REGISTER_LONG_CONSTANT("SIGPWR", LONG_CONST(SIGPWR), CONST_PERSISTENT); #endif +#if defined(SIGINFO) + REGISTER_LONG_CONSTANT("SIGINFO", LONG_CONST(SIGINFO), CONST_PERSISTENT); +#endif #if defined(SIGSYS) REGISTER_LONG_CONSTANT("SIGSYS", LONG_CONST(SIGSYS), CONST_PERSISTENT); #endif