Doc #73652 [Opn->Csd]: Add SplFileInfo->getRealPath() example for php://output

From: Date: Tue, 21 Mar 2017 11:31:14 +0000
Subject: Doc #73652 [Opn->Csd]: Add SplFileInfo->getRealPath() example for php://output
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-14529@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=73652&edit=1 ID: 73652 Updated by: peehaa@php.net Reported by: tjcelaya at gmail dot com Summary: Add SplFileInfo->getRealPath() example for php://output -Status: Open +Status: Closed Type: Documentation Problem Package: SPL related PHP Version: Irrelevant -Assigned To: +Assigned To: peehaa Block user comment: N Private report: N New Comment: 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 http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2016-12-05 09:09:11] tjcelaya at gmail dot com Description: ------------ --- From manual page: http://www.php.net/splfileinfo.getrealpath --- 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'); var_dump($info->getRealPath()); and the corresponding bool(false) in the generated output ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=73652&edit=1

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