mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix #80282: cannot send binary data to popen
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351021 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
33301d17ba
commit
1017932869
1 changed files with 8 additions and 1 deletions
|
@ -35,7 +35,14 @@
|
|||
<term><parameter>mode</parameter></term>
|
||||
<listitem>
|
||||
<para>
|
||||
The mode
|
||||
The mode. Either <literal>'r'</literal> for reading, or <literal>'w'</literal>
|
||||
for writing.
|
||||
</para>
|
||||
<para>
|
||||
On Windows, <function>popen</function> defaults to text mode, i.e. any <literal>\n</literal>
|
||||
characters written to or read from the pipe will be translated to <literal>\r\n</literal>.
|
||||
If this is not desired, binaray mode can be enforced by setting <parameter>mode</parameter>
|
||||
to <literal>'rb'</literal> and <literal>'wb'</literal>, respectively.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
|
Loading…
Reference in a new issue