Doc #69962 [Ver->Csd]: php://temp / php://memory don't support stat()
| From: | phpdocbot@php.net | Date: | Fri, 18 Dec 2020 12:44:14 +0000 |
| Subject: | Doc #69962 [Ver->Csd]: php://temp / php://memory don't support stat() | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-18290@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: phpdocbot@php.net
Reported by: phansys at gmail dot com
Summary: php://temp / php://memory don't support stat()
-Status: Verified
+Status: Closed
Type: Documentation Problem
Package: Streams related
Operating System: Unix/Linux
PHP Version: Irrelevant
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmb
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=8ebad33b9c1eba4e84bfc95d4de544801742d4b1
Log: Fix #69962: php://temp / php://memory don't support stat()
Previous Comments:
------------------------------------------------------------------------
[2020-12-18 12:44:04] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=352123
Log: Fix #69962: php://temp / php://memory don't support stat()
------------------------------------------------------------------------
[2020-12-18 12:40:22] cmb@php.net
Changing to doc bug.
------------------------------------------------------------------------
[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