posix_fpathconf
posix_fpathconf
Returns the value of a configurable limit
**posix_fpathconf** $file_descriptor int $name
Returns the value of a configurable limit from
for .
name``file_descriptor
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
when is invalid.
ValueError``resource
Voorbeeld: example
This example will get the max path name's length in bytes for the current dir.
<?php
$fd = fopen(__DIR__, "r");
echo posix_fpathconf($fd, POSIX_PC_PATH_MAX);
?>
4096
posix_pathconf