php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #63209 return value similar to false (empty string) in case of an empty file
Submitted: 2012-10-03 13:22 UTC Modified: 2013-01-23 15:26 UTC
From: francois dot nivet at diplomatie dot gouv dot fr Assigned: googleguy (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.3Git-2012-10-03 (Git) OS: debian
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: francois dot nivet at diplomatie dot gouv dot fr
New email:
PHP Version: OS:

 

 [2012-10-03 13:22 UTC] francois dot nivet at diplomatie dot gouv dot fr
Description:
------------
---
From manual page: http://www.php.net/function.file-get-contents
---
Maybe should you add a warning as for strpos wich can return 0 equivalent to false if not using === for testing the result


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-01-23 15:25 UTC] googleguy@php.net
Automatic comment from SVN on behalf of googleguy
Revision: http://svn.php.net/viewvc/?view=revision&revision=329280
Log: Added return false problem warning. Fixes bug #63209.
 [2013-01-23 15:26 UTC] googleguy@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2013-01-23 15:26 UTC] googleguy@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: googleguy
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 08:00:02 2026 UTC