[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/reference/stream/functions/_stream-set-read-buffer.xml_str
From: Christoph_Michael_Becker <cmb () php ! net>
Date: 2015-07-23 11:40:07
Message-ID: svn-cmb-1437651607-337225-1232161598 () svn ! php ! net
[Download RAW message or body]
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);
}
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic