mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-28 14:58:55 +00:00
![]() 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. |
||
---|---|---|
.. | ||
construct.xml | ||
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 | ||
getsize.xml | ||
gettype.xml | ||
isdir.xml | ||
isexecutable.xml | ||
isfile.xml | ||
islink.xml | ||
isreadable.xml | ||
iswritable.xml | ||
openfile.xml | ||
setfileclass.xml | ||
setinfoclass.xml | ||
tostring.xml |