php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69962 php://temp / php://memory don't support stat()
Submitted: 2015-06-29 15:59 UTC Modified: 2016-11-30 18:25 UTC
Votes:11
Avg. Score:3.8 ± 0.8
Reproduced:11 of 11 (100.0%)
Same Version:9 (81.8%)
Same OS:8 (72.7%)
From: phansys at gmail dot com Assigned:
Status: Verified Package: Streams related
PHP Version: Irrelevant OS: Unix/Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2015-06-29 15:59 UTC] 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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-30 18:25 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2016-11-30 18:25 UTC] cmb@php.net
Confirmed: <https://3v4l.org/OmDis>. I'm not sure, however, if this is rather a documentation bug.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC