Skip to content

Commit c9fc6b3

Browse files
author
Yoshinari Takaoka
committed
Fix #65879: stream_select on STDIN returns 1 even on blocking stream
Remove out-dated info regarding Windows 98 Fix #55528: Values for the "whence" parameter of the "stream_seek" git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@350537 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent b92523d commit c9fc6b3

File tree

2 files changed

+17
-8
lines changed

2 files changed

+17
-8
lines changed

reference/stream/functions/stream-select.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 40bd5bc761e8cc3d9f03901a96730058452aeac3 Maintainer: hirokawa Status: ready -->
3+
<!-- EN-Revision: 28abaa892f7056bd4736fd73069f6188832189b4 Maintainer: hirokawa Status: ready -->
44
<!-- Credits: mumumu -->
55
<refentry xml:id="function.stream-select" xmlns="http://docbook.org/ns/docbook">
66
<refnamediv>
@@ -215,17 +215,17 @@ if (false === stream_select($r, $w, $e, 0)) {
215215
</para>
216216
</note>
217217
<note>
218-
<para>
219-
Windows の互換性: Windows 98 では、
220-
<function>proc_open</function> が返すパイプに対して
221-
<function>stream_select</function> を使用すると
222-
データが失われる可能性があります。
223-
</para>
218+
<title>Windows の互換性</title>
224219
<para>
225220
Windows では、<function>proc_open</function> が返すファイル記述子に
226221
対して <function>stream_select</function> を使用すると
227222
失敗して &false; を返すことがあります。
228223
</para>
224+
<para>
225+
<emphasis>あらゆる</emphasis> 入力イベントが利用可能になるとすぐに、
226+
コンソールからの <constant>STDIN</constant> の状態も変化しますが、
227+
ストリームからの読み出しはブロックされたままかもしれません。
228+
</para>
229229
</note>
230230
</refsect1>
231231

reference/stream/streamwrapper/stream-seek.xml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 2dfaaa96a927cae6a7e0eaa1cf0ff57c56845169 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 70528fcff5b182ed42bcdee3acf0bf304896a518 Maintainer: takagi Status: ready -->
4+
<!-- Credits: mumumu -->
45

56
<refentry xml:id="streamwrapper.stream-seek" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
67
<refnamediv>
@@ -48,6 +49,14 @@
4849
<member><constant>SEEK_END</constant> - ファイルの終端から <parameter>offset</parameter> バイトぶん進める。</member>
4950
</simplelist>
5051
</para>
52+
<note>
53+
<simpara>
54+
現在の実装は、
55+
<parameter>whence</parameter> の値を <constant>SEEK_CUR</constant> に設定することはありません。
56+
そのようなシークは、
57+
内部的に <constant>SEEK_SET</constant> と同じ動きに変換されます。
58+
</simpara>
59+
</note>
5160
</listitem>
5261
</varlistentry>
5362
</variablelist>

0 commit comments

Comments
 (0)