note 47209 rejected from function.file-exists by betz
| From: | betz@php.net | Date: | Sat, 06 Nov 2004 09:36:40 +0000 |
| Subject: | note 47209 rejected from function.file-exists by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-80189@lists.php.net to get a copy of this message | ||
Note Submitter: php at evilcode dot net
----
<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.