|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #73652 Add SplFileInfo->getRealPath() example for php://output
Submitted: 2016-12-05 09:09 UTC Modified: 2017-03-21 11:31 UTC
From: tjcelaya at gmail dot com Assigned: peehaa (profile)
Status: Closed Package: SPL related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2016-12-05 09:09 UTC] tjcelaya at gmail dot com
From manual page:

The docs mention SplFileInfo->getRealPath() can return FALSE if the file "does not exist". It would be useful to include an additional example like the following to demonstrate that a valid file handle can return FALSE:

$info = new SplFileInfo('php://output');

and the corresponding `bool(false)` in the generated output


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-05 10:32 UTC]
-Type: Feature/Change Request +Type: Documentation Problem
 [2017-03-21 11:31 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: peehaa
 [2017-03-21 11:31 UTC]
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Feb 07 19:05:51 2023 UTC