Add POSIX_SC_CHILD_MAX and POSIX_SC_CLK_TCK constants

Closes GH-12689
This commit is contained in:
Jakub Zelenka 2023-11-16 09:36:20 +00:00
parent 6f95273941
commit 0f349d4c24
No known key found for this signature in database
GPG Key ID: 1C0779DC5C0A9DE4
4 changed files with 28 additions and 1 deletions

3
NEWS
View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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