|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-08 17:36 UTC] iliaa@php.net
[2005-03-08 18:02 UTC] adrian at autopublish dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 18:00:02 2025 UTC |
Description: ------------ The is_file() documentation page says: is_file -- Tells whether the filename is a regular file If I pass a simbolic link to a file as parameter, the function returns true. So my question is: Is a simbolic link a regular file? I think it is not, so the result maybe a bug. Extra info: The filetype() function returns "link". Reproduce code: --------------- Linux command line: touch file ln -s file link echo '<? if (is_file("link")) echo "y\n"; ?>' | php -q Expected result: ---------------- Nothing should be printed after last command. Actual result: -------------- "y" is printed, so the function is returning true.