Doc #64734 [Opn->Csd]: file_exists() dependent on file size??

From: Date: Sun, 13 Oct 2013 17:33:04 +0000
Subject: Doc #64734 [Opn->Csd]: file_exists() dependent on file size??
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-10481@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64734&edit=1 ID: 64734 Updated by: krakjoe@php.net Reported by: W at RHaworth dot net Summary: file_exists() dependent on file size?? -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant -Assigned To: +Assigned To: krakjoe Block user comment: N Private report: N New Comment: This is no longer mentioned in the manual, so closing the bug ... Previous Comments: ------------------------------------------------------------------------ [2013-04-29 10:32:01] W at RHaworth dot net 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 this bug report at https://bugs.php.net/bug.php?id=64734&edit=1

« previous php.doc.bugs (#10481) next »