php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64734 file_exists() dependent on file size??
Submitted: 2013-04-29 10:32 UTC Modified: 2013-10-13 17:33 UTC
From: W at RHaworth dot net Assigned: krakjoe (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: W at RHaworth dot net
New email:
PHP Version: OS:

 

 [2013-04-29 10:32 UTC] 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.




Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-13 17:33 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2013-10-13 17:33 UTC] krakjoe@php.net
This is no longer mentioned in the manual, so closing the bug ...
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 06:00:01 2026 UTC