Doc #50886 [ReO->Csd]: Incomplete documentation for php://memory
| From: | cmb@php.net | Date: | Sat, 25 Jun 2016 14:29:42 +0000 |
| Subject: | Doc #50886 [ReO->Csd]: Incomplete documentation for php://memory | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-13604@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=50886&edit=1
ID: 50886
Updated by: cmb@php.net
Reported by: nospam at mckenzies dot net
Summary: Incomplete documentation for php://memory
-Status: Re-Opened
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
Operating System: any
PHP Version: Irrelevant
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2016-06-25 14:29:07] cmb@php.net
Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=339489
Log: Fix #50886: Incomplete documentation for php://memory
------------------------------------------------------------------------
[2010-02-22 04:11:03] nospam at mckenzies dot net
Thta's what I figured. Could someone add that to the docs?
------------------------------------------------------------------------
[2010-02-16 07:59:33] kalle@php.net
Yes it only works for streams. You cannot store data in php://memory, and later use it in another
stream:
This will not work, because after file_put_contents() the stream will be closed and the data in
php://memory will be lost:
file_put_contents('php://memory', 'PHP');
echo file_get_contents('php://memory');
------------------------------------------------------------------------
[2010-01-30 17:01:21] nospam at mckenzies dot net
The documentation referred to is: http://us3.php.net/manual/en/wrappers.php.php
------------------------------------------------------------------------
[2010-01-30 16:56:06] nospam at mckenzies dot net
Description:
------------
The documentation for php://memory is incomplete. There is no example and there is no mention of
what functions support the use of php://memory. Does it only work with streams?
Reproduce code:
---------------
$text = 'Some text.';
file_put_contents('php://memory', $text);
echo file_get_contents('php://memory');
Expected result:
----------------
Some text.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=50886&edit=1