Moved important emphasized text to separate notes; moved compatibility notice to above the table.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@173791 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Noah Fontes 2004-11-29 23:15:35 +00:00
parent 4733e897c7
commit e96527812a

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.24 $ -->
<!-- $Revision: 1.25 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.fopen">
<refnamediv>
@ -56,6 +56,15 @@
</simpara>
</note>
&note.context-support;
<note>
<simpara>
As of PHP 4.3.2, the default mode is set to binary for all
platforms that distinguish between binary and text mode. If you are
having problems with your scripts after upgrading, try using the
<literal>'t'</literal> flag as a workaround until you have made your
script more portable as mentioned below.
</simpara>
</note>
<para>
The <parameter>mode</parameter> parameter specifies the type of access
you require to the stream. It may be any of the following:
@ -185,25 +194,19 @@
may experience strange problems with your data, including broken image
files and strange problems with <literal>\r\n</literal> characters.
</para>
</note>
<note>
<para>
<emphasis>For portability, it is strongly recommended that you always
use the 'b' flag when opening files with <function>fopen</function>.
</emphasis>
For portability, it is strongly recommended that you always
use the 'b' flag when opening files with <function>fopen</function>.
</para>
</note>
<note>
<para>
<emphasis>Again, for portability, it is also strongly recommended that
you re-write code that uses or relies upon the <literal>'t'</literal>
mode so that it uses the correct line endings and
<literal>'b'</literal> mode instead.
</emphasis>
</para>
<para>
<emphasis>As of PHP 4.3.2, the default mode is set to binary for all
platforms that distinguish between binary and text mode. If you are
having problems with your scripts after upgrading, try using the
<literal>'t'</literal> flag as a workaround until you have made your
script more portable as mentioned above.
</emphasis>
Again, for portability, it is also strongly recommended that
you re-write code that uses or relies upon the <literal>'t'</literal>
mode so that it uses the correct line endings and
<literal>'b'</literal> mode instead.
</para>
</note>
<para>