Req #73652 [NEW]: Add SplFileInfo->getRealPath() example for php://output
| From: | tjcelaya at gmail dot com | Date: | Mon, 05 Dec 2016 09:09:14 +0000 |
| Subject: | Req #73652 [NEW]: Add SplFileInfo->getRealPath() example for php://output | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-205773@lists.php.net to get a copy of this message | ||
From: tjcelaya at gmail dot com
Operating system:
PHP version: Irrelevant
Package: SPL related
Bug Type: Feature/Change Request
Bug description:Add SplFileInfo->getRealPath() example for php://output
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 bug report at https://bugs.php.net/bug.php?id=73652&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=73652&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=73652&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=73652&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=73652&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=73652&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=73652&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=73652&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=73652&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=73652&r=support
Expected behavior: https://bugs.php.net/fix.php?id=73652&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=73652&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=73652&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=73652&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=73652&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=73652&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=73652&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=73652&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=73652&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=73652&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=73652&r=mysqlcfg