php-doc-en/reference/filesystem
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
..
figures Added examples for all functions. 2008-10-13 19:26:50 +00:00
functions Link to SplFileInfo from is_file()/file_exists() docs 2021-01-10 13:37:52 +01:00
book.xml Delete redundant <!-- Membership: --> 2013-05-23 17:38:21 +00:00
constants.xml Use canonical type names 2020-11-02 15:39:04 +00:00
ini.xml Use canonical type names 2020-11-02 15:39:04 +00:00
reference.xml Converted to utf-8 2010-03-28 22:10:10 +00:00
setup.xml Fixed bug #52085 (Filesystem resources' description is absent) 2010-10-19 05:13:26 +00:00
versions.xml Fix versions based on parsed php-src 2018-01-29 15:23:17 +00:00