Commit graph

19 commits

Author SHA1 Message Date
Sergey Panteleev
871a231f4a
Fix issues in Filesystem directory
Part of #658
2021-06-10 16:28:13 +03:00
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
Justin Martin
71895e9afb Added language snippet note regarding the 32bit integer limit causing weird results for files over 2GB.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@317928 c90b9560-bf6c-de11-be94-00142212c4b1
2011-10-08 22:33:42 +00:00
Adam Harvey
44aabb8f7e Move the "emits E_WARNING" paragraph for functions that do so when an internal
stat() fails to an entity, as suggested by Hannes.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@306338 c90b9560-bf6c-de11-be94-00142212c4b1
2010-12-13 09:04:07 +00:00
Adam Harvey
4c39c0fb73 Fix doc bug #53046 (doc error) by adding an Errors/Exception section to all the
functions that call stat() internally.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304365 c90b9560-bf6c-de11-be94-00142212c4b1
2010-10-13 08:58:01 +00:00
Daniel Egeberg
96c9d88bad Converted to utf-8
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297028 c90b9560-bf6c-de11-be94-00142212c4b1
2010-03-28 22:10:10 +00:00
Torben Wilson
af4410a7e1 Normalized the sgml-default-dtd-file local-variable line for those
still using this, after discussion on the phpdoc list.
From now on, manual.ced will need to be found at ~/.phpdoc/manual.ced.



git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288721 c90b9560-bf6c-de11-be94-00142212c4b1
2009-09-25 07:04:39 +00:00
Nilgün Belma Bugüner
32c02d8b9f fixed properties
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@283810 c90b9560-bf6c-de11-be94-00142212c4b1
2009-07-11 07:05:15 +00:00
Hannes Magnusson
c030e2adf7 Upgrade to DocBook5:
- All id attributes are now xml:id
 - Add docbook namespace to all root elements
 - Replace <ulink /> with <link xlink:href />
 - Minor markup fixes here and there


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@238160 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-20 22:25:43 +00:00
Mehdi Achour
899c18ccbc ref.filesystem: switch to new style
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@237808 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-16 01:17:14 +00:00
Philip Olson
a142babd0f WS, preparing for the new doc style
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@228836 c90b9560-bf6c-de11-be94-00142212c4b1
2007-02-03 08:13:44 +00:00
Yannick Torres
699d4a71f7 correct php tag
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@189042 c90b9560-bf6c-de11-be94-00142212c4b1
2005-06-22 20:37:26 +00:00
David Mytton
d32d344d9f Added example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@183677 c90b9560-bf6c-de11-be94-00142212c4b1
2005-04-05 15:46:30 +00:00
Sara Golemon
6777ff863a Add tip introducing url_stat() support
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@145140 c90b9560-bf6c-de11-be94-00142212c4b1
2003-11-29 16:39:55 +00:00
Philip Olson
9372a9f69c Entity change: file.clearstatcache -> note.clearstatcache
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@117393 c90b9560-bf6c-de11-be94-00142212c4b1
2003-02-20 22:45:16 +00:00
Philip Olson
5969acce5f Use of &file.clearstatcache; and &note.no-remote;
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@117362 c90b9560-bf6c-de11-be94-00142212c4b1
2003-02-20 17:25:13 +00:00
Sander Roobol
f4ea5b761f is_file() doesn't work on remote files - #18846
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@91509 c90b9560-bf6c-de11-be94-00142212c4b1
2002-08-11 10:49:51 +00:00
Hartmut Holzgraefe
5b9fc29465 revision tags added
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@78496 c90b9560-bf6c-de11-be94-00142212c4b1
2002-04-17 06:45:35 +00:00
Hartmut Holzgraefe
a4b6d72ad3 banana-split
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@78202 c90b9560-bf6c-de11-be94-00142212c4b1
2002-04-15 00:12:54 +00:00