Doc #64734 [NEW]: file_exists() dependent on file size??
| From: | W at RHaworth dot net | Date: | Mon, 29 Apr 2013 10:32:01 +0000 |
| Subject: | Doc #64734 [NEW]: file_exists() dependent on file size?? | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-9766@lists.php.net to get a copy of this message | ||
From: W at RHaworth dot net
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:file_exists() dependent on file size??
Description:
------------
---
From manual page:
http://www.php.net/function.file-exists#refsect1-function.file-exists-returnvalues
---
This section contains the note: "Because PHP's integer type is signed and
many platforms use 32bit integers, ..."
This note applies to the file_size() function.
Surely it does not apply to file_exists()?
I am being told that this has been reported before. I suggest a change of
wording to the note to indicate that it has not just been blindly copied
from file_size() :
Note: Although file size should not affect this function, nevertheless it
may return unexpected results for files which are larger than 2GB. This is
because PHP's integer type is signed and many platforms use 32bit
integers.
--
Edit bug report at https://bugs.php.net/bug.php?id=64734&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64734&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64734&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64734&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=64734&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=64734&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64734&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=64734&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=64734&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=64734&r=support
Expected behavior: https://bugs.php.net/fix.php?id=64734&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=64734&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=64734&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=64734&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64734&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=64734&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=64734&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=64734&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64734&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=64734&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=64734&r=mysqlcfg