php-doc-en/reference/spl/splfileinfo
Tyson Andre b4d9a0a908 Link to SplFileInfo from is_file()/file_exists() docs
And update the list of values that can be returned by getType based on
php 8.0 ext/standard/filestat.c

SplFileInfo is the only way to do some things, such as

1. Check for the existence of a file that may or may not be readable
   without emitting a notice
   that is caught by whatever error handler the project uses.

   (e.g. file_exists can return false for unix sockets)
2. Check for file types such as unix sockets
   (e.g. `$info->getType() === 'socket'`)

Recently, I was looking for how to check if a given path was a unix
socket and the filesystem functions didn't have any links to that
information.

Closes GH-319.
2021-01-10 13:37:52 +01:00
..
construct.xml Fix #72109: SplFileObject::__construct() not mentioned in class synopsis 2018-06-16 16:43:16 +00:00
getatime.xml
getbasename.xml
getctime.xml
getextension.xml
getfileinfo.xml
getfilename.xml
getgroup.xml
getinode.xml
getlinktarget.xml
getmtime.xml
getowner.xml
getpath.xml
getpathinfo.xml
getpathname.xml
getperms.xml
getrealpath.xml Revert revision 351727 from phpdoc/en/trunk: 2020-11-28 17:58:32 +00:00
getsize.xml
gettype.xml Link to SplFileInfo from is_file()/file_exists() docs 2021-01-10 13:37:52 +01:00
isdir.xml
isexecutable.xml
isfile.xml
islink.xml
isreadable.xml
iswritable.xml
openfile.xml
setfileclass.xml
setinfoclass.xml
tostring.xml Fix #77723: Wrong return type for SplFileInfo::__toString 2019-03-11 12:06:23 +00:00