From b852801595de353cf44eba836d3b42721502badf Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 19 Apr 2024 20:19:12 +0100 Subject: [PATCH] ext/pcntl: signals list update for dragonflybsd related to checkpoint. - SIGCKPT checkpoint and continue. - SIGCKPTEXIT checkpoint and exit. --- UPGRADING | 2 ++ ext/pcntl/pcntl.stub.php | 14 ++++++++++++++ ext/pcntl/pcntl_arginfo.h | 8 +++++++- 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/UPGRADING b/UPGRADING index ad6e5b839a8a0..63c77536335f9 100644 --- a/UPGRADING +++ b/UPGRADING @@ -591,6 +591,8 @@ PHP 8.4 UPGRADE NOTES . QosClass::UserInteractive (macOs only). . QosClass::UserInitiated (macOs only). . QosClass::Utility (macOs only). + . SIGCKPT (DragonFlyBSD only). + . SIGCKPTEXIT (DragonFlyBSD only). - Standard: . PHP_ROUND_CEILING. diff --git a/ext/pcntl/pcntl.stub.php b/ext/pcntl/pcntl.stub.php index cf1b5a4cced5f..7db1e8ed594e2 100644 --- a/ext/pcntl/pcntl.stub.php +++ b/ext/pcntl/pcntl.stub.php @@ -243,6 +243,20 @@ */ const SIGBABY = UNKNOWN; #endif +#ifdef SIGCKPT +/** + * @var int + * @cvalue LONG_CONST(SIGCKPT) + */ +const SIGCKPT = UNKNOWN; +#endif +#ifdef SIGCKPTEXIT +/** + * @var int + * @cvalue LONG_CONST(SIGCKPTEXIT) + */ +const SIGCKPTEXIT = UNKNOWN; +#endif #ifdef SIGRTMIN /** * @var int diff --git a/ext/pcntl/pcntl_arginfo.h b/ext/pcntl/pcntl_arginfo.h index 734fb3976e0af..003f9cb5393d5 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: 3e15bebb568e6e2031acbd932d6eefbd23984c83 */ + * Stub hash: 775838bf2abbf32933f5cec6e4a85e07e8cea247 */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_pcntl_fork, 0, 0, IS_LONG, 0) ZEND_END_ARG_INFO() @@ -374,6 +374,12 @@ static void register_pcntl_symbols(int module_number) #if defined(SIGSYS) REGISTER_LONG_CONSTANT("SIGBABY", LONG_CONST(SIGSYS), CONST_PERSISTENT); #endif +#if defined(SIGCKPT) + REGISTER_LONG_CONSTANT("SIGCKPT", LONG_CONST(SIGCKPT), CONST_PERSISTENT); +#endif +#if defined(SIGCKPTEXIT) + REGISTER_LONG_CONSTANT("SIGCKPTEXIT", LONG_CONST(SIGCKPTEXIT), CONST_PERSISTENT); +#endif #if defined(SIGRTMIN) REGISTER_LONG_CONSTANT("SIGRTMIN", LONG_CONST(SIGRTMIN), CONST_PERSISTENT); #endif