pollita Fri Dec 12 18:20:18 2003 EDT
Modified files:
/phpdoc/en/appendices wrappers.xml
/phpdoc/en/reference/filesystem/functions rename.xml
Log:
rename() now supports fopen wrappers
Index: phpdoc/en/appendices/wrappers.xml
diff -u phpdoc/en/appendices/wrappers.xml:1.29 phpdoc/en/appendices/wrappers.xml:1.30
--- phpdoc/en/appendices/wrappers.xml:1.29 Wed Dec 3 00:42:45 2003
+++ phpdoc/en/appendices/wrappers.xml Fri Dec 12 18:20:17 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.29 $ -->
+<!-- $Revision: 1.30 $ -->
<appendix id="wrappers">
<title>List of Supported Protocols/Wrappers</title>
<para>
@@ -116,6 +116,10 @@
<entry>Supports <function>unlink</function></entry>
<entry>No</entry>
</row>
+ <row>
+ <entry>Supports <function>rename</function></entry>
+ <entry>No</entry>
+ </row>
</tbody>
</tgroup>
</table>
@@ -282,6 +286,10 @@
<entry>Supports <function>unlink</function></entry>
<entry>Yes (<literal>PHP 5.0.0</literal> or later)</entry>
</row>
+ <row>
+ <entry>Supports <function>rename</function></entry>
+ <entry>Yes (<literal>PHP 5.0.0</literal> or later)</entry>
+ </row>
</tbody>
</tgroup>
</table>
@@ -511,6 +519,10 @@
<entry>Supports <function>unlink</function></entry>
<entry>No</entry>
</row>
+ <row>
+ <entry>Supports <function>rename</function></entry>
+ <entry>No</entry>
+ </row>
</tbody>
</tgroup>
</table>
@@ -588,6 +600,10 @@
to unlink compressed files.
</entry>
</row>
+ <row>
+ <entry>Supports <function>rename</function></entry>
+ <entry>No</entry>
+ </row>
</tbody>
</tgroup>
</table>
Index: phpdoc/en/reference/filesystem/functions/rename.xml
diff -u phpdoc/en/reference/filesystem/functions/rename.xml:1.6
phpdoc/en/reference/filesystem/functions/rename.xml:1.7
--- phpdoc/en/reference/filesystem/functions/rename.xml:1.6 Mon Jun 16 08:57:32
2003
+++ phpdoc/en/reference/filesystem/functions/rename.xml Fri Dec 12 18:20:18 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.rename">
<refnamediv>
@@ -12,6 +12,7 @@
<type>bool</type><methodname>rename</methodname>
<methodparam><type>string</type><parameter>oldname</parameter></methodparam>
<methodparam><type>string</type><parameter>newname</parameter></methodparam>
+ <methodparam
choice="opt"><type>resource</type><parameter>context</parameter></methodparam>
</methodsynopsis>
<para>
Attempts to rename <parameter>oldname</parameter> to
@@ -38,6 +39,24 @@
across partitions on *nix based systems.
</para>
</note>
+ <note>
+ <simpara>
+ As of <literal>PHP 5.0.0</literal> <function>rename</function> can also be
+ used with <emphasis>some</emphasis> url wrappers. Refer to <xref
linkend="wrappers"/>
+ for a listing of which wrappers support <function>rename</function>.
+ </simpara>
+ </note>
+ <note>
+ <simpara>
+ The wrapper used in <parameter>oldname</parameter> <emphasis>MUST</emphasis>
+ match the wrapper used in <parameter>newname</parameter>.
+ </simpara>
+ </note>
+ <note>
+ <simpara>
+ The <parameter>context</parameter> parameter was added as of <literal>PHP
5.0.0</literal>.
+ </simpara>
+ </note>
<para>
See also <function>copy</function>,
<function>unlink</function>, and