Bug #69962 [Opn->Ver]: php://temp / php://memory don't support stat()
| From: | cmb@php.net | Date: | Wed, 30 Nov 2016 18:25:46 +0000 |
| Subject: | Bug #69962 [Opn->Ver]: php://temp / php://memory don't support stat() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-205698@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: Open
+Status: Verified
Type: Bug
Package: Streams related
Operating System: Unix/Linux
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Confirmed: <https://3v4l.org/OmDis>. I'm not sure,
however, if this is rather a documentation bug.
Previous Comments:
------------------------------------------------------------------------
[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