note 47209 added to function.file-exists
| From: | php at evilcode dot net | Date: | Sat, 06 Nov 2004 06:32:19 +0000 |
| Subject: | note 47209 added to function.file-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-80186@lists.php.net to get a copy of this message | ||
<quote>This is not a bug in php AFIK, but a caution for unix users.</quote>
Incorrect, assuming stat(2) will always work if a file exists is a PHP bug, not a Linux bug.
BSD's st_size member is defined as off_t, which is a 64-bit type. So this bug shouldn't
exist on that platform. Linux offers an alternative to stat(), being stat64(). PHP should be
modified to reflect this, so if you care, submit a bug report.
----
Manual Page -- http://www.php.net/manual/en/function.file-exists.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47209
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47209&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47209&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47209&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47209&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47209&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47209&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47209&report=yes
Search -- http://master.php.net/manage/user-notes.php