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
 [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 10:00:01 2026 UTC