diff --git a/NEWS b/NEWS index ab95aab660b..63c1e54b05b 100644 --- a/NEWS +++ b/NEWS @@ -33,6 +33,9 @@ Phar: . Fixed bug GH-12532 (PharData created from zip has incorrect timestamp). (nielsdos) +POSIX: + . Added POSIX_SC_CHILD_MAX and POSIX_SC_CLK_TCK constants. (Jakub Zelenka) + SimpleXML: . Fixed bug GH-12192 (SimpleXML infinite loop when getName() is called within foreach). (nielsdos) diff --git a/UPGRADING b/UPGRADING index c0f1771eb8a..15ab6b78a92 100644 --- a/UPGRADING +++ b/UPGRADING @@ -108,6 +108,10 @@ PHP 8.4 UPGRADE NOTES - Phar: . Added support for the unix timestamp extension for zip archives. +- POSIX: + . Added constant POSIX_SC_CHILD_MAX + . Added constant POSIX_SC_CLK_TCK + - SOAP: . Added support for clark notation for namespaces in class map. It is now possible to specify entries in a class map with clark notation diff --git a/ext/posix/posix.stub.php b/ext/posix/posix.stub.php index 4e5adc2eef9..904635f67f3 100644 --- a/ext/posix/posix.stub.php +++ b/ext/posix/posix.stub.php @@ -198,6 +198,20 @@ const POSIX_RLIMIT_INFINITY = UNKNOWN; */ const POSIX_SC_ARG_MAX = UNKNOWN; #endif +#ifdef _SC_CHILD_MAX +/** + * @var int + * @cvalue _SC_CHILD_MAX + */ +const POSIX_SC_CHILD_MAX = UNKNOWN; +#endif +#ifdef _SC_CLK_TCK +/** + * @var int + * @cvalue _SC_CLK_TCK + */ +const POSIX_SC_CLK_TCK = UNKNOWN; +#endif #ifdef _SC_PAGESIZE /** * @var int diff --git a/ext/posix/posix_arginfo.h b/ext/posix/posix_arginfo.h index 2953e93fcdd..717de3a844f 100644 --- a/ext/posix/posix_arginfo.h +++ b/ext/posix/posix_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 5a4a863892761475f2d34d9463e0660b0a8ede5d */ + * Stub hash: bf0c3b394a47374357d6ac95b4c401fbcf7bc697 */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_posix_kill, 0, 2, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, process_id, IS_LONG, 0) @@ -418,6 +418,12 @@ static void register_posix_symbols(int module_number) #if defined(_SC_ARG_MAX) REGISTER_LONG_CONSTANT("POSIX_SC_ARG_MAX", _SC_ARG_MAX, CONST_PERSISTENT); #endif +#if defined(_SC_CHILD_MAX) + REGISTER_LONG_CONSTANT("POSIX_SC_CHILD_MAX", _SC_CHILD_MAX, CONST_PERSISTENT); +#endif +#if defined(_SC_CLK_TCK) + REGISTER_LONG_CONSTANT("POSIX_SC_CLK_TCK", _SC_CLK_TCK, CONST_PERSISTENT); +#endif #if defined(_SC_PAGESIZE) REGISTER_LONG_CONSTANT("POSIX_SC_PAGESIZE", _SC_PAGESIZE, CONST_PERSISTENT); #endif