svn: /phpdoc/en/trunk/language/wrappers/ php.xml
| From: | Christoph Michael Becker | Date: | Sat, 25 Jun 2016 14:29:05 +0000 |
| Subject: | svn: /phpdoc/en/trunk/language/wrappers/ php.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-14247@lists.php.net to get a copy of this message | ||
cmb Sat, 25 Jun 2016 14:29:05 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=339489
Log:
Fix #50886: Incomplete documentation for php://memory
Bug: https://bugs.php.net/50886 (Re-Opened) Incomplete
documentation for php://memory
Changed paths:
U phpdoc/en/trunk/language/wrappers/php.xml
Modified: phpdoc/en/trunk/language/wrappers/php.xml
===================================================================
--- phpdoc/en/trunk/language/wrappers/php.xml 2016-06-25 11:41:33 UTC (rev 339488)
+++ phpdoc/en/trunk/language/wrappers/php.xml 2016-06-25 14:29:05 UTC (rev 339489)
@@ -404,6 +404,20 @@
]]>
</programlisting>
</example><!-- }}} -->
+ <example>
+ <title>php://memory and php://temp are not reusable</title>
+ <para>
+ <filename>php://memory</filename> and <filename>php://temp</filename>
+ and not reusable, i.e. after the streams have been closed there is no way
+ to refer to them again.
+ </para>
+ <programlisting role="php">
+<![CDATA[
+file_put_contents('php://memory', 'PHP');
+echo file_get_contents('php://memory'); // prints nothing
+]]>
+ </programlisting>
+ </example>
</refsect1><!-- }}} -->
</refentry>