cvs: phpdoc-fr /language/oop5 patterns.xml /reference/apache/functions apache-getenv.xml /reference/array/functions compact.xml
/reference/errorfunc/functions set-error-handler.xml set-exception-handler.xml /reference/ftp/functions ftp-get.xml ftp-nb-fget.xml ftp-nb-get.xml
/reference/funchand/functions call-user-func.xml /reference/image/functions imagegd.xml imagegd2.xml /reference/info/functions getenv.xml
/reference/ldap configure.xml /reference/ldap/functions ldap-sasl-bind.xml
| From: | Yannick Torres | Date: | Thu, 20 Jan 2005 22:00:14 +0000 |
| Subject: | cvs: phpdoc-fr /language/oop5 patterns.xml /reference/apache/functions apache-getenv.xml /reference/array/functions compact.xml /reference/errorfunc/functions set-error-handler.xml set-exception-handler.xml /reference/ftp/functions ftp-get.xml ftp-nb-fget.xml ftp-nb-get.xml /reference/funchand/functions call-user-func.xml /reference/image/functions imagegd.xml imagegd2.xml /reference/info/functions getenv.xml /reference/ldap configure.xml /reference/ldap/functions ldap-sasl-bind.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-3836@lists.php.net to get a copy of this message | ||
yannick Thu Jan 20 17:00:14 2005 EDT
Modified files:
/phpdoc-fr/language/oop5 patterns.xml
/phpdoc-fr/reference/apache/functions apache-getenv.xml
/phpdoc-fr/reference/array/functions compact.xml
/phpdoc-fr/reference/errorfunc/functions set-error-handler.xml
set-exception-handler.xml
/phpdoc-fr/reference/ftp/functions ftp-get.xml ftp-nb-fget.xml
ftp-nb-get.xml
/phpdoc-fr/reference/funchand/functions call-user-func.xml
/phpdoc-fr/reference/image/functions imagegd2.xml imagegd.xml
/phpdoc-fr/reference/info/functions getenv.xml
/phpdoc-fr/reference/ldap/functions ldap-sasl-bind.xml
/phpdoc-fr/reference/ldap configure.xml
Log:
sync with EN
http://cvs.php.net/diff.php/phpdoc-fr/language/oop5/patterns.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-fr/language/oop5/patterns.xml diff -u phpdoc-fr/language/oop5/patterns.xml:1.1 phpdoc-fr/language/oop5/patterns.xml:1.2 --- phpdoc-fr/language/oop5/patterns.xml:1.1 Sun Oct 31 09:28:49 2004 +++ phpdoc-fr/language/oop5/patterns.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <sect1 id="language.oop5.patterns"> <title>Masques</title> <para> @@ -75,7 +75,7 @@ class Example { // instance de la classe - static private $instance; + private static $instance; // Un constructeur privé private function __construct() @@ -84,7 +84,7 @@ } // La méthode singleton - static public function singleton() + public static function singleton() { if (!isset(self::$instance)) { $c = __CLASS__; http://cvs.php.net/diff.php/phpdoc-fr/reference/apache/functions/apache-getenv.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/apache/functions/apache-getenv.xml diff -u phpdoc-fr/reference/apache/functions/apache-getenv.xml:1.6 phpdoc-fr/reference/apache/functions/apache-getenv.xml:1.7 --- phpdoc-fr/reference/apache/functions/apache-getenv.xml:1.6 Mon Nov 1 12:04:18 2004 +++ phpdoc-fr/reference/apache/functions/apache-getenv.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.3 Maintainer: didou Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.apache-getenv"> <refnamediv> @@ -21,6 +21,12 @@ Apache spécifiée par le paramètre <parameter>variable</parameter> ou &false; en cas d'échec. </para> + <note> + <para> + <function>apache_getenv</function> est uniquement défini lorsque + vous utilisez Apache 2. + </para> + </note> <example> <title>Exemple avec <function>apache_getenv</function></title> <programlisting role="php"> @@ -38,7 +44,9 @@ </example> <para> Voir aussi - <function>apache_setenv</function>. + <function>apache_setenv</function>, + <function>getenv</function>&listendand; + <link linkend="language.variables.superglobals">Superglobals</link>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/array/functions/compact.xml?r1=1.13&r2=1.14&ty=u Index: phpdoc-fr/reference/array/functions/compact.xml diff -u phpdoc-fr/reference/array/functions/compact.xml:1.13 phpdoc-fr/reference/array/functions/compact.xml:1.14 --- phpdoc-fr/reference/array/functions/compact.xml:1.13 Mon Nov 1 12:34:54 2004 +++ phpdoc-fr/reference/array/functions/compact.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> -<!-- EN-Revision: 1.7 Maintainer: didou Status: ready --> +<!-- $Revision: 1.14 $ --> +<!-- EN-Revision: 1.8 Maintainer: didou Status: ready --> <refentry id="function.compact"> <refnamediv> <refname>compact</refname> @@ -34,6 +34,16 @@ Toute chaîne non reconnue dans la table des symboles sera tout simplement ignorée. </para> + <note> + <title>Gotcha</title> + <para> + Parceque les <link linkend="language.variables.variable">variables + variables</link> ne doivent pas être utilisées avec les + <link linkend="language.variables.superglobals">tableaux Superglobaux </link> + dans des fonctions, les tableaux Superglobaux ne doivent pas être passés + dans la fonction <function>compact</function>. + </para> + </note> <para> <example> <title>Exemple avec <function>compact</function></title> http://cvs.php.net/diff.php/phpdoc-fr/reference/errorfunc/functions/set-error-handler.xml?r1=1.22&r2=1.23&ty=u Index: phpdoc-fr/reference/errorfunc/functions/set-error-handler.xml diff -u phpdoc-fr/reference/errorfunc/functions/set-error-handler.xml:1.22 phpdoc-fr/reference/errorfunc/functions/set-error-handler.xml:1.23 --- phpdoc-fr/reference/errorfunc/functions/set-error-handler.xml:1.22 Mon Nov 1 16:28:56 2004 +++ phpdoc-fr/reference/errorfunc/functions/set-error-handler.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.22 $ --> -<!-- EN-Revision: 1.24 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.23 $ --> +<!-- EN-Revision: 1.25 Maintainer: yannick Status: ready --> <refentry id="function.set-error-handler"> <refnamediv> <refname>set_error_handler</refname> @@ -283,16 +283,16 @@ en &php; 5. </para> </note> - <para> - Voir aussi - <function>error_reporting</function>, - <function>restore_error_handler</function>, - <function>trigger_error</function> et - <link linkend="errorfunc.constants">les constantes de niveau - d'erreurs</link>. - </para> - </refsect1> - </refentry> + <para> + Voir aussi + <function>error_reporting</function>, + <function>restore_error_handler</function>, + <function>trigger_error</function>, + <link linkend="errorfunc.constants">les constantes de niveau + d'erreurs</link>&listendand; &seealso.callback;. + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-fr/reference/errorfunc/functions/set-exception-handler.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/errorfunc/functions/set-exception-handler.xml diff -u phpdoc-fr/reference/errorfunc/functions/set-exception-handler.xml:1.7 phpdoc-fr/reference/errorfunc/functions/set-exception-handler.xml:1.8 --- phpdoc-fr/reference/errorfunc/functions/set-exception-handler.xml:1.7 Fri Jan 7 16:37:31 2005 +++ phpdoc-fr/reference/errorfunc/functions/set-exception-handler.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <refentry id="function.set-exception-handler"> <refnamediv> <refname>set_exception_handler</refname> @@ -89,9 +89,10 @@ <refsect1> &reftitle.seealso; <para> - <function>restore_exception_handler</function> - <function>restore_error_handler</function> - <function>error_reporting</function>&listendand; + <function>restore_exception_handler</function>, + <function>restore_error_handler</function>, + <function>error_reporting</function>, + &seealso.callback;&listendand; les <link linkend="language.exceptions">exceptions en &php; 5</link>. </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-fr/reference/ftp/functions/ftp-get.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-fr/reference/ftp/functions/ftp-get.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-get.xml:1.10 phpdoc-fr/reference/ftp/functions/ftp-get.xml:1.11 --- phpdoc-fr/reference/ftp/functions/ftp-get.xml:1.10 Sun Jan 16 08:38:14 2005 +++ phpdoc-fr/reference/ftp/functions/ftp-get.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <refentry id="function.ftp-get"> <refnamediv> <refname>ftp_get</refname> @@ -38,7 +38,7 @@ <term><parameter>local_file</parameter></term> <listitem> <para> - Le chemin vers le fichier local. + Le chemin vers le fichier local (sera écrasé si le fichier existe déjà). </para> </listitem> </varlistentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/ftp/functions/ftp-nb-fget.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/reference/ftp/functions/ftp-nb-fget.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-nb-fget.xml:1.8 phpdoc-fr/reference/ftp/functions/ftp-nb-fget.xml:1.9 --- phpdoc-fr/reference/ftp/functions/ftp-nb-fget.xml:1.8 Sun Jan 16 08:38:14 2005 +++ phpdoc-fr/reference/ftp/functions/ftp-nb-fget.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <refentry id="function.ftp-nb-fget"> <refnamediv> <refname>ftp_nb_fget</refname> @@ -126,7 +126,7 @@ <member><function>ftp_nb_get</function></member> <member><function>ftp_nb_continue</function></member> <member><function>ftp_fget</function></member> - <member><function>ftp_fget</function></member> + <member><function>ftp_get</function></member> </simplelist> </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-fr/reference/ftp/functions/ftp-nb-get.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-fr/reference/ftp/functions/ftp-nb-get.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-nb-get.xml:1.9 phpdoc-fr/reference/ftp/functions/ftp-nb-get.xml:1.10 --- phpdoc-fr/reference/ftp/functions/ftp-nb-get.xml:1.9 Sun Jan 16 08:38:14 2005 +++ phpdoc-fr/reference/ftp/functions/ftp-nb-get.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <refentry id="function.ftp-nb-get"> <refnamediv> <refname>ftp_nb_get</refname> @@ -44,7 +44,7 @@ <term><parameter>local_file</parameter></term> <listitem> <para> - Le chemin vers le fichier local. + Le chemin vers le fichier local (sera écrasé si le fichier existe déjà). </para> </listitem> </varlistentry> @@ -176,7 +176,7 @@ <member><function>ftp_nb_fget</function></member> <member><function>ftp_nb_continue</function></member> <member><function>ftp_fget</function></member> - <member><function>ftp_fget</function></member> + <member><function>ftp_get</function></member> </simplelist> </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-fr/reference/funchand/functions/call-user-func.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-fr/reference/funchand/functions/call-user-func.xml diff -u phpdoc-fr/reference/funchand/functions/call-user-func.xml:1.9 phpdoc-fr/reference/funchand/functions/call-user-func.xml:1.10 --- phpdoc-fr/reference/funchand/functions/call-user-func.xml:1.9 Tue Nov 16 16:43:29 2004 +++ phpdoc-fr/reference/funchand/functions/call-user-func.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> <refentry id="function.call-user-func"> <refnamediv> <refname>call_user_func</refname> @@ -90,7 +90,7 @@ <para> Voir aussi <function>is_callable</function>, - <function>call_user_func_array</function> et + <function>call_user_func_array</function>&listendand; &seealso.callback;. </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-fr/reference/image/functions/imagegd2.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-fr/reference/image/functions/imagegd2.xml diff -u phpdoc-fr/reference/image/functions/imagegd2.xml:1.9 phpdoc-fr/reference/image/functions/imagegd2.xml:1.10 --- phpdoc-fr/reference/image/functions/imagegd2.xml:1.9 Tue Nov 16 16:46:38 2004 +++ phpdoc-fr/reference/image/functions/imagegd2.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry id="function.imagegd2"> <refnamediv> @@ -18,7 +18,9 @@ </methodsynopsis> <para> <function>imagegd2</function> génère une image au format GD2, - vers le navigateur ou un fichier. + vers le fichier <parameter>filename</parameter>. + Le paramètre <parameter>image</parameter> est le retour de la + fonction <function>imagecreate</function>. </para> <para> Le paramètre optionnel <parameter>type</parameter> peut valoir @@ -31,6 +33,17 @@ <parameter>type</parameter> ont été ajoutés en &php; 4.3.2. </para> </note> + <note> + <para> + Le format GD2 est communément utilisé pour charger rapidement les + parties d'une image. Notez que le format GD2 est uniquement utilisable + dans les applications compatibles GD2. + </para> + </note> + <para> + Voir aussi + <function>imagegd</function>. + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/image/functions/imagegd.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/reference/image/functions/imagegd.xml diff -u phpdoc-fr/reference/image/functions/imagegd.xml:1.8 phpdoc-fr/reference/image/functions/imagegd.xml:1.9 --- phpdoc-fr/reference/image/functions/imagegd.xml:1.8 Tue Nov 16 16:46:38 2004 +++ phpdoc-fr/reference/image/functions/imagegd.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry id="function.imagegd"> <refnamediv> @@ -15,7 +15,24 @@ <methodparam choice="opt"><type>string</type><parameter>filename</parameter></methodparam> </methodsynopsis> <para> - &warn.undocumented.func; + <function>imagegd</function> génère une image GD vers le fichier + <parameter>filename</parameter>. L'argument <parameter>image</parameter> + est le retour de la fonction <function>imagecreate</function>. + </para> + <para> + Le paramètre <parameter>filename</parameter> est optionnel et s'il + est omis, le flux de l'image sera affiché directement. + </para> + <note> + <para> + Le format GD est communément utilisé pour autoriser le chargement + rapide des parties d'un image. Notez que le format GD est uniquement + utilisable dans les applications compatibles GD. + </para> + </note> + <para> + Voir aussi + <function>imagegd2</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/info/functions/getenv.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-fr/reference/info/functions/getenv.xml diff -u phpdoc-fr/reference/info/functions/getenv.xml:1.10 phpdoc-fr/reference/info/functions/getenv.xml:1.11 --- phpdoc-fr/reference/info/functions/getenv.xml:1.10 Tue Nov 16 16:46:39 2004 +++ phpdoc-fr/reference/info/functions/getenv.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.7 Maintainer: didou Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.8 Maintainer: didou Status: ready --> <!-- Reviewed: yes --> <refentry id="function.getenv"> <refnamediv> @@ -24,9 +24,11 @@ <programlisting role="php"> <![CDATA[ <?php +// Exemple d'utilisation de getenv() +$ip = getenv('REMOTE_ADDR'); -$ip = getenv("REMOTE_ADDR"); // retourne l'adresse IP de l'utilisateur - +// Ou utilisez simplement une Superglobale ($_SERVER ou $_ENV) +$ip = $_SERVER['REMOTE_ADDR']; ?> ]]> </programlisting> @@ -41,7 +43,10 @@ <ulink url="&url.cgispec;">variables d'environnement.</ulink>. </para> <para> - Voir aussi <function>putenv</function>. + Voir aussi + <function>putenv</function>, + <function>apache_getenv</function>&listendand; + les <link linkend="language.variables.superglobals">Superglobales</link>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-sasl-bind.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-sasl-bind.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-sasl-bind.xml:1.3 phpdoc-fr/reference/ldap/functions/ldap-sasl-bind.xml:1.4 --- phpdoc-fr/reference/ldap/functions/ldap-sasl-bind.xml:1.3 Tue Nov 16 17:29:39 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-sasl-bind.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry id="function.ldap-sasl-bind"> <refnamediv> @@ -18,6 +18,16 @@ &warn.undocumented.func; + <note> + <title>Conditions d'utilisation</title> + <simpara> + <function>ldap_sasl_bind</function> nécessite le support <acronym>SASL</acronym> + (<filename>sasl.h</filename>). Assurez-vous que l'option de configuration + <literal>--with-ldap-sasl</literal> est utilisée lors de la compilation de &php;, + sinon, cette fonction ne sera pas définie. + </simpara> + </note> + </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/configure.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-fr/reference/ldap/configure.xml diff -u phpdoc-fr/reference/ldap/configure.xml:1.10 phpdoc-fr/reference/ldap/configure.xml:1.11 --- phpdoc-fr/reference/ldap/configure.xml:1.10 Sun Jul 18 18:37:37 2004 +++ phpdoc-fr/reference/ldap/configure.xml Thu Jan 20 17:00:14 2005 @@ -1,28 +1,33 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <section id="ldap.installation"> - &reftitle.install; - <para> - Le support LDAP de &php; n'est pas activé par défaut. Vous devez - utiliser l'option de configuration - <option role="configure">--with-ldap[=DIR]</option> - lorsque vous compilez &php;, où DIR est le répertoire d'installation du serveur LDAP. - </para> - <note> - <title>Note aux utilisateurs Win32</title> - <simpara> - Afin d'activer ce module dans l'environnement Windows, vous - devez copier les bibliothèques <emphasis>libsasl.dll</emphasis> depuis le dossier DLL - de &php;/Win32 dans le dossier système - SYSTEM32 de votre machine (par exemple : C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32). - Pour &php; <= 4.2.0, copiez <filename>libsasl.dll</filename>, pour &php; - >= 4.3.0, copiez <filename>libeay32.dll</filename> et <filename>ssleay32.dll</filename> - dans votre dossier système SYSTEM. - </simpara> - </note> - </section> +<section id="ldap.installation"> + &reftitle.install; + <para> + Le support LDAP de &php; n'est pas activé par défaut. Vous devez + utiliser l'option de configuration + <option role="configure">--with-ldap[=DIR]</option> + lorsque vous compilez &php;, où DIR est le répertoire d'installation du serveur LDAP. + Pour activer le support SASL, assurez-vous que l'option de configuration + <option role="configure">--with-ldap-sasl[=DIR]</option> est utilisée et que + le fichier <filename>sasl.h</filename> existe sur votre système. + </para> + <note> + <title>Note aux utilisateurs Win32</title> + <simpara> + Afin d'activer ce module dans l'environnement Windows, vous + devez copier plusieurs bibliothèques depuis le dossier DLL + de &php;/Win32 dans le dossier système + SYSTEM32 de votre machine (par exemple : + <filename class="directory">C:\WINNT\SYSTEM32</filename> ou + <filename class="directory">C:\WINDOWS\SYSTEM32</filename>). + Pour &php; <= 4.2.0, copiez <filename>libsasl.dll</filename>, pour &php; + >= 4.3.0, copiez <filename>libeay32.dll</filename> et + <filename>ssleay32.dll</filename> dans votre dossier système SYSTEM. + </simpara> + </note> +</section> <!-- Keep this comment at the end of the file Local variables:
http://cvs.php.net/diff.php/phpdoc-fr/language/oop5/patterns.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-fr/language/oop5/patterns.xml diff -u phpdoc-fr/language/oop5/patterns.xml:1.1 phpdoc-fr/language/oop5/patterns.xml:1.2 --- phpdoc-fr/language/oop5/patterns.xml:1.1 Sun Oct 31 09:28:49 2004 +++ phpdoc-fr/language/oop5/patterns.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <sect1 id="language.oop5.patterns"> <title>Masques</title> <para> @@ -75,7 +75,7 @@ class Example { // instance de la classe - static private $instance; + private static $instance; // Un constructeur privé private function __construct() @@ -84,7 +84,7 @@ } // La méthode singleton - static public function singleton() + public static function singleton() { if (!isset(self::$instance)) { $c = __CLASS__; http://cvs.php.net/diff.php/phpdoc-fr/reference/apache/functions/apache-getenv.xml?r1=1.6&r2=1.7&ty=u Index: phpdoc-fr/reference/apache/functions/apache-getenv.xml diff -u phpdoc-fr/reference/apache/functions/apache-getenv.xml:1.6 phpdoc-fr/reference/apache/functions/apache-getenv.xml:1.7 --- phpdoc-fr/reference/apache/functions/apache-getenv.xml:1.6 Mon Nov 1 12:04:18 2004 +++ phpdoc-fr/reference/apache/functions/apache-getenv.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.3 Maintainer: didou Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> <!-- Reviewed: no --> <refentry id="function.apache-getenv"> <refnamediv> @@ -21,6 +21,12 @@ Apache spécifiée par le paramètre <parameter>variable</parameter> ou &false; en cas d'échec. </para> + <note> + <para> + <function>apache_getenv</function> est uniquement défini lorsque + vous utilisez Apache 2. + </para> + </note> <example> <title>Exemple avec <function>apache_getenv</function></title> <programlisting role="php"> @@ -38,7 +44,9 @@ </example> <para> Voir aussi - <function>apache_setenv</function>. + <function>apache_setenv</function>, + <function>getenv</function>&listendand; + <link linkend="language.variables.superglobals">Superglobals</link>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/array/functions/compact.xml?r1=1.13&r2=1.14&ty=u Index: phpdoc-fr/reference/array/functions/compact.xml diff -u phpdoc-fr/reference/array/functions/compact.xml:1.13 phpdoc-fr/reference/array/functions/compact.xml:1.14 --- phpdoc-fr/reference/array/functions/compact.xml:1.13 Mon Nov 1 12:34:54 2004 +++ phpdoc-fr/reference/array/functions/compact.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.13 $ --> -<!-- EN-Revision: 1.7 Maintainer: didou Status: ready --> +<!-- $Revision: 1.14 $ --> +<!-- EN-Revision: 1.8 Maintainer: didou Status: ready --> <refentry id="function.compact"> <refnamediv> <refname>compact</refname> @@ -34,6 +34,16 @@ Toute chaîne non reconnue dans la table des symboles sera tout simplement ignorée. </para> + <note> + <title>Gotcha</title> + <para> + Parceque les <link linkend="language.variables.variable">variables + variables</link> ne doivent pas être utilisées avec les + <link linkend="language.variables.superglobals">tableaux Superglobaux </link> + dans des fonctions, les tableaux Superglobaux ne doivent pas être passés + dans la fonction <function>compact</function>. + </para> + </note> <para> <example> <title>Exemple avec <function>compact</function></title> http://cvs.php.net/diff.php/phpdoc-fr/reference/errorfunc/functions/set-error-handler.xml?r1=1.22&r2=1.23&ty=u Index: phpdoc-fr/reference/errorfunc/functions/set-error-handler.xml diff -u phpdoc-fr/reference/errorfunc/functions/set-error-handler.xml:1.22 phpdoc-fr/reference/errorfunc/functions/set-error-handler.xml:1.23 --- phpdoc-fr/reference/errorfunc/functions/set-error-handler.xml:1.22 Mon Nov 1 16:28:56 2004 +++ phpdoc-fr/reference/errorfunc/functions/set-error-handler.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.22 $ --> -<!-- EN-Revision: 1.24 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.23 $ --> +<!-- EN-Revision: 1.25 Maintainer: yannick Status: ready --> <refentry id="function.set-error-handler"> <refnamediv> <refname>set_error_handler</refname> @@ -283,16 +283,16 @@ en &php; 5. </para> </note> - <para> - Voir aussi - <function>error_reporting</function>, - <function>restore_error_handler</function>, - <function>trigger_error</function> et - <link linkend="errorfunc.constants">les constantes de niveau - d'erreurs</link>. - </para> - </refsect1> - </refentry> + <para> + Voir aussi + <function>error_reporting</function>, + <function>restore_error_handler</function>, + <function>trigger_error</function>, + <link linkend="errorfunc.constants">les constantes de niveau + d'erreurs</link>&listendand; &seealso.callback;. + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/diff.php/phpdoc-fr/reference/errorfunc/functions/set-exception-handler.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/errorfunc/functions/set-exception-handler.xml diff -u phpdoc-fr/reference/errorfunc/functions/set-exception-handler.xml:1.7 phpdoc-fr/reference/errorfunc/functions/set-exception-handler.xml:1.8 --- phpdoc-fr/reference/errorfunc/functions/set-exception-handler.xml:1.7 Fri Jan 7 16:37:31 2005 +++ phpdoc-fr/reference/errorfunc/functions/set-exception-handler.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <refentry id="function.set-exception-handler"> <refnamediv> <refname>set_exception_handler</refname> @@ -89,9 +89,10 @@ <refsect1> &reftitle.seealso; <para> - <function>restore_exception_handler</function> - <function>restore_error_handler</function> - <function>error_reporting</function>&listendand; + <function>restore_exception_handler</function>, + <function>restore_error_handler</function>, + <function>error_reporting</function>, + &seealso.callback;&listendand; les <link linkend="language.exceptions">exceptions en &php; 5</link>. </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-fr/reference/ftp/functions/ftp-get.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-fr/reference/ftp/functions/ftp-get.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-get.xml:1.10 phpdoc-fr/reference/ftp/functions/ftp-get.xml:1.11 --- phpdoc-fr/reference/ftp/functions/ftp-get.xml:1.10 Sun Jan 16 08:38:14 2005 +++ phpdoc-fr/reference/ftp/functions/ftp-get.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <refentry id="function.ftp-get"> <refnamediv> <refname>ftp_get</refname> @@ -38,7 +38,7 @@ <term><parameter>local_file</parameter></term> <listitem> <para> - Le chemin vers le fichier local. + Le chemin vers le fichier local (sera écrasé si le fichier existe déjà). </para> </listitem> </varlistentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/ftp/functions/ftp-nb-fget.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/reference/ftp/functions/ftp-nb-fget.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-nb-fget.xml:1.8 phpdoc-fr/reference/ftp/functions/ftp-nb-fget.xml:1.9 --- phpdoc-fr/reference/ftp/functions/ftp-nb-fget.xml:1.8 Sun Jan 16 08:38:14 2005 +++ phpdoc-fr/reference/ftp/functions/ftp-nb-fget.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <refentry id="function.ftp-nb-fget"> <refnamediv> <refname>ftp_nb_fget</refname> @@ -126,7 +126,7 @@ <member><function>ftp_nb_get</function></member> <member><function>ftp_nb_continue</function></member> <member><function>ftp_fget</function></member> - <member><function>ftp_fget</function></member> + <member><function>ftp_get</function></member> </simplelist> </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-fr/reference/ftp/functions/ftp-nb-get.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-fr/reference/ftp/functions/ftp-nb-get.xml diff -u phpdoc-fr/reference/ftp/functions/ftp-nb-get.xml:1.9 phpdoc-fr/reference/ftp/functions/ftp-nb-get.xml:1.10 --- phpdoc-fr/reference/ftp/functions/ftp-nb-get.xml:1.9 Sun Jan 16 08:38:14 2005 +++ phpdoc-fr/reference/ftp/functions/ftp-nb-get.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> <refentry id="function.ftp-nb-get"> <refnamediv> <refname>ftp_nb_get</refname> @@ -44,7 +44,7 @@ <term><parameter>local_file</parameter></term> <listitem> <para> - Le chemin vers le fichier local. + Le chemin vers le fichier local (sera écrasé si le fichier existe déjà). </para> </listitem> </varlistentry> @@ -176,7 +176,7 @@ <member><function>ftp_nb_fget</function></member> <member><function>ftp_nb_continue</function></member> <member><function>ftp_fget</function></member> - <member><function>ftp_fget</function></member> + <member><function>ftp_get</function></member> </simplelist> </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-fr/reference/funchand/functions/call-user-func.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-fr/reference/funchand/functions/call-user-func.xml diff -u phpdoc-fr/reference/funchand/functions/call-user-func.xml:1.9 phpdoc-fr/reference/funchand/functions/call-user-func.xml:1.10 --- phpdoc-fr/reference/funchand/functions/call-user-func.xml:1.9 Tue Nov 16 16:43:29 2004 +++ phpdoc-fr/reference/funchand/functions/call-user-func.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> <refentry id="function.call-user-func"> <refnamediv> <refname>call_user_func</refname> @@ -90,7 +90,7 @@ <para> Voir aussi <function>is_callable</function>, - <function>call_user_func_array</function> et + <function>call_user_func_array</function>&listendand; &seealso.callback;. </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-fr/reference/image/functions/imagegd2.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-fr/reference/image/functions/imagegd2.xml diff -u phpdoc-fr/reference/image/functions/imagegd2.xml:1.9 phpdoc-fr/reference/image/functions/imagegd2.xml:1.10 --- phpdoc-fr/reference/image/functions/imagegd2.xml:1.9 Tue Nov 16 16:46:38 2004 +++ phpdoc-fr/reference/image/functions/imagegd2.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry id="function.imagegd2"> <refnamediv> @@ -18,7 +18,9 @@ </methodsynopsis> <para> <function>imagegd2</function> génère une image au format GD2, - vers le navigateur ou un fichier. + vers le fichier <parameter>filename</parameter>. + Le paramètre <parameter>image</parameter> est le retour de la + fonction <function>imagecreate</function>. </para> <para> Le paramètre optionnel <parameter>type</parameter> peut valoir @@ -31,6 +33,17 @@ <parameter>type</parameter> ont été ajoutés en &php; 4.3.2. </para> </note> + <note> + <para> + Le format GD2 est communément utilisé pour charger rapidement les + parties d'une image. Notez que le format GD2 est uniquement utilisable + dans les applications compatibles GD2. + </para> + </note> + <para> + Voir aussi + <function>imagegd</function>. + </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/image/functions/imagegd.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/reference/image/functions/imagegd.xml diff -u phpdoc-fr/reference/image/functions/imagegd.xml:1.8 phpdoc-fr/reference/image/functions/imagegd.xml:1.9 --- phpdoc-fr/reference/image/functions/imagegd.xml:1.8 Tue Nov 16 16:46:38 2004 +++ phpdoc-fr/reference/image/functions/imagegd.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry id="function.imagegd"> <refnamediv> @@ -15,7 +15,24 @@ <methodparam choice="opt"><type>string</type><parameter>filename</parameter></methodparam> </methodsynopsis> <para> - &warn.undocumented.func; + <function>imagegd</function> génère une image GD vers le fichier + <parameter>filename</parameter>. L'argument <parameter>image</parameter> + est le retour de la fonction <function>imagecreate</function>. + </para> + <para> + Le paramètre <parameter>filename</parameter> est optionnel et s'il + est omis, le flux de l'image sera affiché directement. + </para> + <note> + <para> + Le format GD est communément utilisé pour autoriser le chargement + rapide des parties d'un image. Notez que le format GD est uniquement + utilisable dans les applications compatibles GD. + </para> + </note> + <para> + Voir aussi + <function>imagegd2</function>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/info/functions/getenv.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-fr/reference/info/functions/getenv.xml diff -u phpdoc-fr/reference/info/functions/getenv.xml:1.10 phpdoc-fr/reference/info/functions/getenv.xml:1.11 --- phpdoc-fr/reference/info/functions/getenv.xml:1.10 Tue Nov 16 16:46:39 2004 +++ phpdoc-fr/reference/info/functions/getenv.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.7 Maintainer: didou Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.8 Maintainer: didou Status: ready --> <!-- Reviewed: yes --> <refentry id="function.getenv"> <refnamediv> @@ -24,9 +24,11 @@ <programlisting role="php"> <![CDATA[ <?php +// Exemple d'utilisation de getenv() +$ip = getenv('REMOTE_ADDR'); -$ip = getenv("REMOTE_ADDR"); // retourne l'adresse IP de l'utilisateur - +// Ou utilisez simplement une Superglobale ($_SERVER ou $_ENV) +$ip = $_SERVER['REMOTE_ADDR']; ?> ]]> </programlisting> @@ -41,7 +43,10 @@ <ulink url="&url.cgispec;">variables d'environnement.</ulink>. </para> <para> - Voir aussi <function>putenv</function>. + Voir aussi + <function>putenv</function>, + <function>apache_getenv</function>&listendand; + les <link linkend="language.variables.superglobals">Superglobales</link>. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/functions/ldap-sasl-bind.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/ldap/functions/ldap-sasl-bind.xml diff -u phpdoc-fr/reference/ldap/functions/ldap-sasl-bind.xml:1.3 phpdoc-fr/reference/ldap/functions/ldap-sasl-bind.xml:1.4 --- phpdoc-fr/reference/ldap/functions/ldap-sasl-bind.xml:1.3 Tue Nov 16 17:29:39 2004 +++ phpdoc-fr/reference/ldap/functions/ldap-sasl-bind.xml Thu Jan 20 17:00:13 2005 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry id="function.ldap-sasl-bind"> <refnamediv> @@ -18,6 +18,16 @@ &warn.undocumented.func; + <note> + <title>Conditions d'utilisation</title> + <simpara> + <function>ldap_sasl_bind</function> nécessite le support <acronym>SASL</acronym> + (<filename>sasl.h</filename>). Assurez-vous que l'option de configuration + <literal>--with-ldap-sasl</literal> est utilisée lors de la compilation de &php;, + sinon, cette fonction ne sera pas définie. + </simpara> + </note> + </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/ldap/configure.xml?r1=1.10&r2=1.11&ty=u Index: phpdoc-fr/reference/ldap/configure.xml diff -u phpdoc-fr/reference/ldap/configure.xml:1.10 phpdoc-fr/reference/ldap/configure.xml:1.11 --- phpdoc-fr/reference/ldap/configure.xml:1.10 Sun Jul 18 18:37:37 2004 +++ phpdoc-fr/reference/ldap/configure.xml Thu Jan 20 17:00:14 2005 @@ -1,28 +1,33 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <section id="ldap.installation"> - &reftitle.install; - <para> - Le support LDAP de &php; n'est pas activé par défaut. Vous devez - utiliser l'option de configuration - <option role="configure">--with-ldap[=DIR]</option> - lorsque vous compilez &php;, où DIR est le répertoire d'installation du serveur LDAP. - </para> - <note> - <title>Note aux utilisateurs Win32</title> - <simpara> - Afin d'activer ce module dans l'environnement Windows, vous - devez copier les bibliothèques <emphasis>libsasl.dll</emphasis> depuis le dossier DLL - de &php;/Win32 dans le dossier système - SYSTEM32 de votre machine (par exemple : C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32). - Pour &php; <= 4.2.0, copiez <filename>libsasl.dll</filename>, pour &php; - >= 4.3.0, copiez <filename>libeay32.dll</filename> et <filename>ssleay32.dll</filename> - dans votre dossier système SYSTEM. - </simpara> - </note> - </section> +<section id="ldap.installation"> + &reftitle.install; + <para> + Le support LDAP de &php; n'est pas activé par défaut. Vous devez + utiliser l'option de configuration + <option role="configure">--with-ldap[=DIR]</option> + lorsque vous compilez &php;, où DIR est le répertoire d'installation du serveur LDAP. + Pour activer le support SASL, assurez-vous que l'option de configuration + <option role="configure">--with-ldap-sasl[=DIR]</option> est utilisée et que + le fichier <filename>sasl.h</filename> existe sur votre système. + </para> + <note> + <title>Note aux utilisateurs Win32</title> + <simpara> + Afin d'activer ce module dans l'environnement Windows, vous + devez copier plusieurs bibliothèques depuis le dossier DLL + de &php;/Win32 dans le dossier système + SYSTEM32 de votre machine (par exemple : + <filename class="directory">C:\WINNT\SYSTEM32</filename> ou + <filename class="directory">C:\WINDOWS\SYSTEM32</filename>). + Pour &php; <= 4.2.0, copiez <filename>libsasl.dll</filename>, pour &php; + >= 4.3.0, copiez <filename>libeay32.dll</filename> et + <filename>ssleay32.dll</filename> dans votre dossier système SYSTEM. + </simpara> + </note> +</section> <!-- Keep this comment at the end of the file Local variables: