cvs: phpdoc /en/reference/dir/functions closedir.xml readdir.xml rewinddir.xml /en/reference/image/functions imageinterlace.xml imageistruecolor.xml
| From: | Kalle Sommer Nielsen | Date: | Fri, 08 Aug 2008 18:44:17 +0000 |
| Subject: | cvs: phpdoc /en/reference/dir/functions closedir.xml readdir.xml rewinddir.xml /en/reference/image/functions imageinterlace.xml imageistruecolor.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2009@lists.php.net to get a copy of this message | ||
kalle Fri Aug 8 18:44:17 2008 UTC
Modified files:
/phpdoc/en/reference/dir/functions closedir.xml readdir.xml
rewinddir.xml
/phpdoc/en/reference/image/functions imageinterlace.xml
imageistruecolor.xml
Log:
* Fixes #43529 (readdir(), rewinddir() and closedir() don't always fail when passed 0
arguments)
* Fixed wrong call in example on imageinterlace()
* Added example for imageistruecolor()
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/dir/functions/closedir.xml?r1=1.8&r2=1.9&diff_format=u
Index: phpdoc/en/reference/dir/functions/closedir.xml
diff -u phpdoc/en/reference/dir/functions/closedir.xml:1.8
phpdoc/en/reference/dir/functions/closedir.xml:1.9
--- phpdoc/en/reference/dir/functions/closedir.xml:1.8 Wed Jun 20 22:24:21 2007
+++ phpdoc/en/reference/dir/functions/closedir.xml Fri Aug 8 18:44:17 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
<!-- splitted from ./en/functions/dir.xml, last change in rev 1.2 -->
<refentry xml:id="function.closedir" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
@@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>void</type><methodname>closedir</methodname>
-
<methodparam><type>resource</type><parameter>dir_handle</parameter></methodparam>
+ <methodparam
choice="opt"><type>resource</type><parameter>dir_handle</parameter></methodparam>
</methodsynopsis>
<para>
Closes the directory stream indicated by
@@ -29,7 +29,9 @@
<listitem>
<para>
The directory handle <type>resource</type> previously opened
- with <function>opendir</function>.
+ with <function>opendir</function>. If the directory handle is
+ not specified, the last link opened by <function>opendir</function>
+ is assumed.
</para>
</listitem>
</varlistentry>
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/dir/functions/readdir.xml?r1=1.11&r2=1.12&diff_format=u
Index: phpdoc/en/reference/dir/functions/readdir.xml
diff -u phpdoc/en/reference/dir/functions/readdir.xml:1.11
phpdoc/en/reference/dir/functions/readdir.xml:1.12
--- phpdoc/en/reference/dir/functions/readdir.xml:1.11 Wed Jun 20 22:24:21 2007
+++ phpdoc/en/reference/dir/functions/readdir.xml Fri Aug 8 18:44:17 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.11 $ -->
+<!-- $Revision: 1.12 $ -->
<!-- splitted from ./en/functions/dir.xml, last change in rev 1.2 -->
<refentry xml:id="function.readdir" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
@@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>readdir</methodname>
-
<methodparam><type>resource</type><parameter>dir_handle</parameter></methodparam>
+ <methodparam
choice="opt"><type>resource</type><parameter>dir_handle</parameter></methodparam>
</methodsynopsis>
<para>
Returns the filename of the next file from the directory. The
@@ -29,7 +29,9 @@
<listitem>
<para>
The directory handle <type>resource</type> previously opened
- with <function>opendir</function>.
+ with <function>opendir</function>. If the directory handle is
+ not specified, the last link opened by <function>opendir</function>
+ is assumed.
</para>
</listitem>
</varlistentry>
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/dir/functions/rewinddir.xml?r1=1.7&r2=1.8&diff_format=u
Index: phpdoc/en/reference/dir/functions/rewinddir.xml
diff -u phpdoc/en/reference/dir/functions/rewinddir.xml:1.7
phpdoc/en/reference/dir/functions/rewinddir.xml:1.8
--- phpdoc/en/reference/dir/functions/rewinddir.xml:1.7 Wed Jun 20 22:24:21 2007
+++ phpdoc/en/reference/dir/functions/rewinddir.xml Fri Aug 8 18:44:17 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/dir.xml, last change in rev 1.2 -->
<refentry xml:id="function.rewinddir" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
@@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<type>void</type><methodname>rewinddir</methodname>
-
<methodparam><type>resource</type><parameter>dir_handle</parameter></methodparam>
+ <methodparam
choice="opt"><type>resource</type><parameter>dir_handle</parameter></methodparam>
</methodsynopsis>
<para>
Resets the directory stream indicated by
@@ -29,7 +29,9 @@
<listitem>
<para>
The directory handle <type>resource</type> previously opened
- with <function>opendir</function>.
+ with <function>opendir</function>. If the directory handle is
+ not specified, the last link opened by <function>opendir</function>
+ is assumed.
</para>
</listitem>
</varlistentry>
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/image/functions/imageinterlace.xml?r1=1.7&r2=1.8&diff_format=u
Index: phpdoc/en/reference/image/functions/imageinterlace.xml
diff -u phpdoc/en/reference/image/functions/imageinterlace.xml:1.7
phpdoc/en/reference/image/functions/imageinterlace.xml:1.8
--- phpdoc/en/reference/image/functions/imageinterlace.xml:1.7 Thu Aug 7 12:34:02 2008
+++ phpdoc/en/reference/image/functions/imageinterlace.xml Fri Aug 8 18:44:17 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<refentry xml:id="function.imageinterlace" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imageinterlace</refname>
@@ -55,7 +55,7 @@
$im = imagecreatefrom('php.gif');
// Enable interlancing
-imageinterlace($im);
+imageinterlace($im, true);
// Save the interfaced image
imagegif($im, './php_interlaced.gif');
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/image/functions/imageistruecolor.xml?r1=1.7&r2=1.8&diff_format=u
Index: phpdoc/en/reference/image/functions/imageistruecolor.xml
diff -u phpdoc/en/reference/image/functions/imageistruecolor.xml:1.7
phpdoc/en/reference/image/functions/imageistruecolor.xml:1.8
--- phpdoc/en/reference/image/functions/imageistruecolor.xml:1.7 Wed Jun 20 22:24:38 2007
+++ phpdoc/en/reference/image/functions/imageistruecolor.xml Fri Aug 8 18:44:17 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.7 $ -->
+<!-- $Revision: 1.8 $ -->
<refentry xml:id="function.imageistruecolor" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imageistruecolor</refname>
@@ -31,6 +31,36 @@
otherwise.
</para>
</refsect1>
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>Simple detection of true color image instances using
<function>imageistruecolor</function></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// $im is an image instance
+
+// Check if image is a true color image or not
+if(!imageistruecolor($im))
+{
+ // Create a new true color image instance
+ $tc = imagecreatetruecolor(imagesx($im), imagesy($im));
+
+ imagecopy($tc, $im, 0, 0, 0, 0, imagesx($im), imagesy($im));
+ imagedestroy($im);
+
+ $im = $tc;
+ $tc = NULL;
+}
+
+// Continue working with image instance
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
<refsect1 role="notes">
&reftitle.notes;
¬e.gd.2;