array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.posix-pathconf.php', 1 => 'posix_pathconf', 2 => 'Returns the value of a configurable limit', ), 'up' => array ( 0 => 'ref.posix.php', 1 => 'POSIX Функції', ), 'prev' => array ( 0 => 'function.posix-mknod.php', 1 => 'posix_mknod', ), 'next' => array ( 0 => 'function.posix-setegid.php', 1 => 'posix_setegid', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/posix/functions/posix-pathconf.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

posix_pathconf

(PHP 8 >= 8.3.0)

posix_pathconfReturns the value of a configurable limit

Опис

posix_pathconf(string $path, int $name): int|false
Увага

Наразі ця функція не документована. Доступний лише список її параметрів.

Returns the value of a configurable limit from name for a path

Параметри

path

The name of the file whose limit you want to get.

name

The name of the configurable limit, one of the following. POSIX_PC_LINK_MAX, POSIX_PC_MAX_CANON, POSIX_PC_MAX_INPUT, POSIX_PC_NAME_MAX, POSIX_PC_PATH_MAX, POSIX_PC_PIPE_BUF, POSIX_PC_CHOWN_RESTRICTED, POSIX_PC_NO_TRUNC, POSIX_PC_ALLOC_SIZE_MIN, POSIX_PC_SYMLINK_MAX.

Значення, що повертаються

Returns the configurable limit or false.

Помилки/виключення

Throws a ValueError when path is empty.

Приклади

Приклад #1 posix_pathconf() example

This example will get the max path name's length in bytes for the tmp dir.

<?php
echo posix_pathconf(sys_get_temp_dir(), POSIX_PC_PATH_MAX);
?>

Поданий вище приклад виведе:

4096

Прогляньте також