svn: /phpdoc/en/trunk/reference/stream/functions/ stream-set-read-buffer.xml stream-set-write-buffer.xml
| From: | Christoph Michael Becker | Date: | Thu, 23 Jul 2015 11:40:07 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/stream/functions/ stream-set-read-buffer.xml stream-set-write-buffer.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-13479@lists.php.net to get a copy of this message | ||
cmb Thu, 23 Jul 2015 11:40:07 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=337225
Log:
corrected return value documentation (fixes #66897)
Bug: https://bugs.php.net/66897 (Analyzed)
stream_set_read_buffer / stream_set_write_buffer return EOF
Changed paths:
U phpdoc/en/trunk/reference/stream/functions/stream-set-read-buffer.xml
U phpdoc/en/trunk/reference/stream/functions/stream-set-write-buffer.xml
Modified: phpdoc/en/trunk/reference/stream/functions/stream-set-read-buffer.xml
===================================================================
--- phpdoc/en/trunk/reference/stream/functions/stream-set-read-buffer.xml 2015-07-22 18:26:48 UTC
(rev 337224)
+++ phpdoc/en/trunk/reference/stream/functions/stream-set-read-buffer.xml 2015-07-23 11:40:07 UTC
(rev 337225)
@@ -46,7 +46,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Returns 0 on success, or <acronym>EOF</acronym> if the request
+ Returns 0 on success, or another value if the request
cannot be honored.
</para>
</refsect1>
Modified: phpdoc/en/trunk/reference/stream/functions/stream-set-write-buffer.xml
===================================================================
--- phpdoc/en/trunk/reference/stream/functions/stream-set-write-buffer.xml 2015-07-22 18:26:48 UTC
(rev 337224)
+++ phpdoc/en/trunk/reference/stream/functions/stream-set-write-buffer.xml 2015-07-23 11:40:07 UTC
(rev 337225)
@@ -55,7 +55,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
- Returns 0 on success, or <acronym>EOF</acronym> if the request cannot be honored.
+ Returns 0 on success, or another value if the request cannot be honored.
</para>
</refsect1>
@@ -73,7 +73,9 @@
<?php
$fp = fopen($file, "w");
if ($fp) {
- stream_set_write_buffer($fp, 0);
+ if (stream_set_write_buffer($fp, 0) !== 0) {
+ // changing the buffering failed
+ }
fwrite($fp, $output);
fclose($fp);
}