Bug->Doc #69962 [Ver]: php://temp / php://memory don't support stat()
| From: | cmb@php.net | Date: | Fri, 18 Dec 2020 12:40:22 +0000 |
| Subject: | Bug->Doc #69962 [Ver]: php://temp / php://memory don't support stat() | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18289@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69962&edit=1
ID: 69962
Updated by: cmb@php.net
Reported by: phansys at gmail dot com
Summary: php://temp / php://memory don't support stat()
Status: Verified
-Type: Bug
+Type: Documentation Problem
Package: Streams related
Operating System: Unix/Linux
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Changing to doc bug.
Previous Comments:
------------------------------------------------------------------------
[2018-08-27 18:55:29] vhu at iki dot fi
I agree this looks like a documentation issue. Both php://temp and php://memory support fstat() but
no stat().
See https://3v4l.org/6TpPg
------------------------------------------------------------------------
[2016-11-30 18:25:46] cmb@php.net
Confirmed: <https://3v4l.org/OmDis>. I'm not sure,
however, if this is rather a documentation bug.
------------------------------------------------------------------------
[2015-06-29 15:59:31] phansys at gmail dot com
Description:
------------
Streams php://temp and php://memory don't support stat(), while documentation says it should be
supported: http://php.net/manual/en/wrappers.php.php#refsect1-wrappers.php-options
Test script:
---------------
$ php -r "var_dump(stat('php://temp'));"
PHP Warning: stat(): stat failed for php://temp in Command line code on line 1
bool(false)
$ php -r "var_dump(stat('php://memory'));"
PHP Warning: stat(): stat failed for php://memory in Command line code on line 1
bool(false)
Actual result:
--------------
PHP Warning: stat(): stat failed for php://memory in Command line code on line 1
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69962&edit=1