php-doc-en/reference/filesystem/functions
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
..
basename.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
chgrp.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
chmod.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
chown.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
clearstatcache.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
copy.xml Remove more changelog entries, mostly from PHP 5.3 era 2020-09-26 14:08:59 +00:00
delete.xml Reword description for delete placehold page. 2019-04-24 17:07:17 +00:00
dirname.xml Remove PHP 4 and 5.0.0 mentions. 2019-03-24 19:38:53 +00:00
disk-free-space.xml Fix return types 2020-11-02 15:52:35 +00:00
disk-total-space.xml Fix return types 2020-11-02 15:52:35 +00:00
diskfreespace.xml
fclose.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
feof.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
fflush.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
fgetc.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
fgetcsv.xml Revert revision 351727 from phpdoc/en/trunk: 2020-11-28 17:58:32 +00:00
fgets.xml Revert revision 351727 from phpdoc/en/trunk: 2020-11-28 17:58:32 +00:00
fgetss.xml Revert revision(s) 351724 from phpdoc/en/trunk: 2020-11-28 18:05:44 +00:00
file-exists.xml Link to SplFileInfo from is_file()/file_exists() docs 2021-01-10 13:37:52 +01:00
file-get-contents.xml Split type declarations into their dedicated page 2020-11-12 18:39:19 +00:00
file-put-contents.xml Revert revision(s) 351724 from phpdoc/en/trunk: 2020-11-28 18:05:44 +00:00
file.xml Revert revision(s) 351724 from phpdoc/en/trunk: 2020-11-28 18:05:44 +00:00
fileatime.xml Fix return types 2020-11-02 15:52:35 +00:00
filectime.xml Fix return types 2020-11-02 15:52:35 +00:00
filegroup.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
fileinode.xml Fix return types 2020-11-02 15:52:35 +00:00
filemtime.xml Fix return types 2020-11-02 15:52:35 +00:00
fileowner.xml Fix return types 2020-11-02 15:52:35 +00:00
fileperms.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
filesize.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
filetype.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
flock.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
fnmatch.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
fopen.xml Revert revision(s) 351724 from phpdoc/en/trunk: 2020-11-28 18:05:44 +00:00
fpassthru.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
fputcsv.xml Fix return types 2020-11-02 15:52:35 +00:00
fputs.xml
fread.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
fscanf.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
fseek.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
fstat.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
ftell.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
ftruncate.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
fwrite.xml Revert revision(s) 351724 from phpdoc/en/trunk: 2020-11-28 18:05:44 +00:00
glob.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
is-dir.xml Remove safe_mode related information 2020-10-13 22:07:26 +00:00
is-executable.xml
is-file.xml Link to SplFileInfo from is_file()/file_exists() docs 2021-01-10 13:37:52 +01:00
is-link.xml
is-readable.xml
is-uploaded-file.xml
is-writable.xml
is-writeable.xml
lchgrp.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
lchown.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
link.xml Fix #80300: add "unlink" in "see also" section 2020-11-03 09:59:25 +00:00
linkinfo.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
lstat.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
mkdir.xml Remove safe_mode related information 2020-10-13 22:07:26 +00:00
move-uploaded-file.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
parse-ini-file.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
parse-ini-string.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
pathinfo.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
pclose.xml
popen.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
readfile.xml Fix return types 2020-11-02 15:52:35 +00:00
readlink.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
realpath-cache-get.xml
realpath-cache-size.xml
realpath.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
rename.xml Fix #71075: Update rename() docs to mention Windows-specific permissions issues 2020-11-05 15:49:38 +00:00
rewind.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
rmdir.xml Remove safe_mode related information 2020-10-13 22:07:26 +00:00
set-file-buffer.xml
stat.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
symlink.xml Fix #80300: add "unlink" in "see also" section 2020-11-03 09:59:25 +00:00
tempnam.xml Generate some standard methodsynopses based on stubs 2020-12-26 19:26:31 +00:00
tmpfile.xml Fix return types 2020-11-02 15:52:35 +00:00
touch.xml Remove more changelog entries, mostly from PHP 5.3 era 2020-09-26 14:08:59 +00:00
umask.xml
unlink.xml Fix #79017: Can delete files in use by other processes 2019-12-29 12:46:35 +00:00