gwynne Thu Jun 14 21:11:57 2007 UTC
Modified files:
/phpdoc/en/reference/filesystem/functions file-put-contents.xml
Log:
Documented FILE_TEXT and FILE_BINARY flags. Fixes bug #41609.
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/filesystem/functions/file-put-contents.xml?r1=1.11&r2=1.12&diff_format=u
Index: phpdoc/en/reference/filesystem/functions/file-put-contents.xml
diff -u phpdoc/en/reference/filesystem/functions/file-put-contents.xml:1.11
phpdoc/en/reference/filesystem/functions/file-put-contents.xml:1.12
--- phpdoc/en/reference/filesystem/functions/file-put-contents.xml:1.11 Thu Oct
26 02:17:14 2006
+++ phpdoc/en/reference/filesystem/functions/file-put-contents.xml Thu Jun
14 21:11:57 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.11 $ -->
+<!-- $Revision: 1.12 $ -->
<refentry id="function.file-put-contents">
<refnamediv>
<refname>file_put_contents</refname>
@@ -61,7 +61,11 @@
<constant>FILE_APPEND</constant> and/or <constant>LOCK_EX</constant>
(acquire an exclusive lock), however the
<constant>FILE_USE_INCLUDE_PATH</constant> option should be used with
- caution.
+ caution. As of PHP 6, it can also take one of
+ <constant>FILE_TEXT</constant> or <constant>FILE_BINARY</constant> to
+ specify how newlines should be handled when outputting the file. See
+ <function>fopen</function>'s "t" and "b"
+ modes for more information.
</para>
</listitem>
</varlistentry>
@@ -98,12 +102,25 @@
</thead>
<tbody>
<row>
+ <entry>5.0.0</entry>
+ <entry>
+ Added context support
+ </entry>
+ </row>
+ <row>
<entry>5.1.0</entry>
<entry>
Added support for <constant>LOCK_EX</constant> and the ability to pass
a stream resource to the <parameter>data</parameter> parameter
</entry>
</row>
+ <row>
+ <entry>6.0.0</entry>
+ <entry>
+ Added support for <constant>FILE_TEXT</constant> and
+ <constant>FILE_BINARY</constant>
+ </entry>
+ </row>
</tbody>
</tgroup>
</informaltable>