|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-08-27 07:19 UTC] advgraph at regiocom dot net
when using the is_file function and a file is not found an error is sent back to the error log. I expect this simply to return false in this case. I am aware of file_exists, however in the manual: Returns true if the filename exists and is a regular file. Therefore I expect this to also be testing for file existence. I do not expect debugging output leading me to have to use @is_file and possibly miss other crucial error output. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 01:00:01 2025 UTC |
I don't know what your 'last' is, but current CVS doesn't output anything with file_exists(): mfischer@ficken:~$ php -q <? error_reporting(E_ALL); $bla = file_exists('sdahfw3gjkgsdgjksd'); var_dump($bla); ?> bool(false) No error outpout. - Markus