From 640c556c0812d3e921c1aa940f64ceddb6c791c8 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 10 Nov 2023 16:58:48 +0000 Subject: [PATCH 1/2] [PHP 8.3] posix constants addition. posix_(f)pathconf. --- reference/posix/constants.xml | 128 ++++++++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) diff --git a/reference/posix/constants.xml b/reference/posix/constants.xml index 61f75b428025..246828e741dc 100644 --- a/reference/posix/constants.xml +++ b/reference/posix/constants.xml @@ -381,6 +381,134 @@ + +
+ <function>posix_pathconf</function> constants + + + + POSIX_PC_LINK_MAX + (int) + + + + The maximum number of links a given file or directory can have. + Available as of PHP 8.3.0. + + + + + + POSIX_PC_MAX_CANON + (int) + + + + The maximum number of bytes in a terminal canonical input buffer + (pathname being then a character special file). + Available as of PHP 8.3.0. + + + + + + POSIX_PC_MAX_INPUT + (int) + + + + The maximum number of bytes of a terminal input queue + (pathname being then a character special file). + Available as of PHP 8.3.0. + + + + + + POSIX_PC_NAME_MAX + (int) + + + + The maximum number of characters for a file name alone, not its path. + Available as of PHP 8.3.0. + + + + + + POSIX_PC_PATH_MAX + (int) + + + + The maximum number of characters for a full path name. + Available as of PHP 8.3.0. + + + + + + POSIX_PC_PIPE_BUF + (int) + + + + The maximum number of bytes that can be written to a pipe in one operation. + Available as of PHP 8.3.0. + + + + + + POSIX_PC_CHOWN_RESTRICTED + (int) + + + + If privileges are required to be allow chown to work. + Available as of PHP 8.3.0. + + + + + + POSIX_PC_NO_TRUNC + (int) + + + + If a file name (or files under a directory) is longer than POSIX_PC_NAME_MAX. + Available as of PHP 8.3.0. + + + + + + POSIX_PC_ALLOC_SIZE_MIN + (int) + + + + The minimum number of bytes of storage allocated for any portion of a file. + Available as of PHP 8.3.0. + + + + + + POSIX_PC_ALLOC_SYMLINK_MAX + (int) + + + + The maximum number of symbolic links a given file or directory can have. + Available as of PHP 8.3.0. + + + + +