cvs: phpdoc-fr /reference/classobj/functions is-subclass-of.xml /reference/domxml/functions domxml-new-doc.xml /reference/errorfunc ini.xml
/reference/filesystem/functions file-get-contents.xml /reference/funchand/functions call-user-func-array.xml call-user-func.xml func-get-arg.xml
func-get-args.xml func-num-args.xml

From: Date: Thu, 28 Oct 2004 14:48:16 +0000
Subject: cvs: phpdoc-fr /reference/classobj/functions is-subclass-of.xml /reference/domxml/functions domxml-new-doc.xml /reference/errorfunc ini.xml
/reference/filesystem/functions file-get-contents.xml /reference/funchand/functions call-user-func-array.xml call-user-func.xml func-get-arg.xml
func-get-args.xml func-num-args.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-3547@lists.php.net to get a copy of this message
yannick Thu Oct 28 10:48:16 2004 EDT Modified files: /phpdoc-fr/reference/classobj/functions is-subclass-of.xml /phpdoc-fr/reference/domxml/functions domxml-new-doc.xml /phpdoc-fr/reference/errorfunc ini.xml /phpdoc-fr/reference/filesystem/functions file-get-contents.xml /phpdoc-fr/reference/funchand/functions call-user-func-array.xml call-user-func.xml func-get-args.xml func-get-arg.xml func-num-args.xml Log: sync with EN

http://cvs.php.net/diff.php/phpdoc-fr/reference/classobj/functions/is-subclass-of.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-fr/reference/classobj/functions/is-subclass-of.xml diff -u phpdoc-fr/reference/classobj/functions/is-subclass-of.xml:1.9 phpdoc-fr/reference/classobj/functions/is-subclass-of.xml:1.10 --- phpdoc-fr/reference/classobj/functions/is-subclass-of.xml:1.9 Mon Aug 30 11:01:30 2004 +++ phpdoc-fr/reference/classobj/functions/is-subclass-of.xml Thu Oct 28 10:48:13 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.4 Maintainer: dams Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.5 Maintainer: dams Status: ready --> <refentry id="function.is-subclass-of"> <refnamediv> <refname>is_subclass_of</refname> @@ -10,7 +10,7 @@ <title>Description</title> <methodsynopsis> <type>bool</type><methodname>is_subclass_of</methodname> - <methodparam><type>object</type><parameter>object</parameter></methodparam> + <methodparam><type>mixed</type><parameter>object</parameter></methodparam> <methodparam><type>string</type><parameter>class_name</parameter></methodparam> </methodsynopsis> <para> @@ -18,6 +18,12 @@ <parameter>object</parameter> est une sous-classe de <parameter>class_name</parameter>, &false; sinon. </para> + <note> + <para> + Depuis &php; 5.0.3, vous devez également spécifier le paramètre + <parameter>object</parameter> en tant que chaîne de caractères (le nom de la classe). + </para> + </note> <para> <example> <title>Exemple avec <function>is_subclass_of</function></title> @@ -45,17 +51,30 @@ } else { echo "non, \$WFC n'est pas une sous-classe de la classe WidgetFactory\n"; } -// Affiche : "oui, $WFC est une sous-classe de la classe WidgetFactory\n"; if (is_subclass_of($WF, 'WidgetFactory')) { echo "oui, \$WF est une sous-classe de la classe WidgetFactory\n"; } else { echo "non, \$WF n'est pas une sous-classe de la classe WidgetFactory\n"; } -// Affiche "non, $WF n'est pas une sous-classe de la classe WidgetFactory\n" + +// utilisable uniquement depuis PHP 5.0.3 +if (is_subclass_of('WidgetFactory_Child', 'WidgetFactory')) { + echo "oui, WidgetFactory_Child est une sous-classe de la classe WidgetFactory\n"; +} else { + echo "non, WidgetFactory_Child n'est pas une sous-classe de la classe WidgetFactory\n"; +} ?> ]]> </programlisting> + &example.outputs; + <screen> +<![CDATA[ +oui, $WFC est une sous-classe de la classe WidgetFactory +non, $WF n'est pas une sous-classe de la classe WidgetFactory +oui, WidgetFactory_Child est une sous-classe de la classe WidgetFactory +]]> + </screen> </example> </para> <simpara> http://cvs.php.net/diff.php/phpdoc-fr/reference/domxml/functions/domxml-new-doc.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/domxml/functions/domxml-new-doc.xml diff -u phpdoc-fr/reference/domxml/functions/domxml-new-doc.xml:1.3 phpdoc-fr/reference/domxml/functions/domxml-new-doc.xml:1.4 --- phpdoc-fr/reference/domxml/functions/domxml-new-doc.xml:1.3 Tue Apr 27 21:55:39 2004 +++ phpdoc-fr/reference/domxml/functions/domxml-new-doc.xml Thu Oct 28 10:48:15 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.3 Maintainer: didou Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.4 Maintainer: didou Status: ready --> <refentry id="function.domxml-new-doc"> <refnamediv> <refname>domxml_new_doc</refname> @@ -19,10 +19,6 @@ <function>domxml_new_doc</function> crée un document XML et le retourne. </para> - <para> - Voir aussi - <function>domdocument_add_root</function>. - </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/errorfunc/ini.xml?r1=1.18&r2=1.19&ty=u Index: phpdoc-fr/reference/errorfunc/ini.xml diff -u phpdoc-fr/reference/errorfunc/ini.xml:1.18 phpdoc-fr/reference/errorfunc/ini.xml:1.19 --- phpdoc-fr/reference/errorfunc/ini.xml:1.18 Wed Sep 1 10:28:05 2004 +++ phpdoc-fr/reference/errorfunc/ini.xml Thu Oct 28 10:48:15 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.18 $ --> -<!-- EN-Revision: 1.23 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.19 $ --> +<!-- EN-Revision: 1.24 Maintainer: yannick Status: ready --> <section id="errorfunc.configuration"> &reftitle.runtime; &extension.runtime; @@ -392,7 +392,9 @@ </term> <listitem> <para> - Nom du fichier où seront enregistrées les erreurs. Si la + Nom du fichier où seront enregistrées les erreurs. Le fichier + doit être accessible en écriture par l'utilisateur exécutant + le serveur web. Si la valeur spéciale <literal>syslog</literal> est utilisée, les erreurs seront envoyées au système d'historique du serveur. Sous Unix, cela correspond à syslog(3) et sous Windows NT, à http://cvs.php.net/diff.php/phpdoc-fr/reference/filesystem/functions/file-get-contents.xml?r1=1.14&r2=1.15&ty=u Index: phpdoc-fr/reference/filesystem/functions/file-get-contents.xml diff -u phpdoc-fr/reference/filesystem/functions/file-get-contents.xml:1.14 phpdoc-fr/reference/filesystem/functions/file-get-contents.xml:1.15 --- phpdoc-fr/reference/filesystem/functions/file-get-contents.xml:1.14 Mon Oct 25 12:44:11 2004 +++ phpdoc-fr/reference/filesystem/functions/file-get-contents.xml Thu Oct 28 10:48:16 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.14 $ --> -<!-- EN-Revision: 1.19 Maintainer: dams Status: ready --> +<!-- $Revision: 1.15 $ --> +<!-- EN-Revision: 1.20 Maintainer: dams Status: ready --> <refentry id="function.file-get-contents"> <refnamediv> <refname>file_get_contents</refname> @@ -29,27 +29,17 @@ en la mettant à "1", vous rechercherez aussi dans le dossier <link linkend="ini.include-path"><option>include_path</option></link>. </para> - <note> - <simpara> - Le paramètre <parameter>offset</parameter> a été ajouté en &php; 5.1.0. - </simpara> - </note> - <example> - <title>Utilisation de la fonction <function>file_get_contents</function> avec une URI</title> + <note> + <simpara> + Le paramètre <parameter>offset</parameter> a été ajouté en &php; 5.1.0. + </simpara> + </note> + <note> <para> Si vous ouvrez une URI avec des caractères spéciaux, comme des espaces, vous devez encoder cette URI avec la fonction <function>urlencode</function>. </para> - <programlisting role="php"> -<![CDATA[ -<?php -$url = "http://example.com/avec des caracteres speciaux"; -list($protocol, $uri) = split('//', $url); -$html = file_get_contents($proto . '//' . urlencode($uri)); -?> -]]> - </programlisting> - </example> + </note> &note.bin-safe; &tip.fopen-wrapper; &note.context-support; http://cvs.php.net/diff.php/phpdoc-fr/reference/funchand/functions/call-user-func-array.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-fr/reference/funchand/functions/call-user-func-array.xml diff -u phpdoc-fr/reference/funchand/functions/call-user-func-array.xml:1.8 phpdoc-fr/reference/funchand/functions/call-user-func-array.xml:1.9 --- phpdoc-fr/reference/funchand/functions/call-user-func-array.xml:1.8 Wed Aug 18 14:40:22 2004 +++ phpdoc-fr/reference/funchand/functions/call-user-func-array.xml Thu Oct 28 10:48:16 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> <refentry id="function.call-user-func-array"> <refnamediv> <refname>call_user_func_array</refname> @@ -48,7 +48,8 @@ </para> <para> Voir aussi - <function>call_user_func</function>. + <function>call_user_func</function> et + &seealso.callback;. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/funchand/functions/call-user-func.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/funchand/functions/call-user-func.xml diff -u phpdoc-fr/reference/funchand/functions/call-user-func.xml:1.7 phpdoc-fr/reference/funchand/functions/call-user-func.xml:1.8 --- phpdoc-fr/reference/funchand/functions/call-user-func.xml:1.7 Fri Aug 6 21:54:43 2004 +++ phpdoc-fr/reference/funchand/functions/call-user-func.xml Thu Oct 28 10:48:16 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.12 Maintainer: yannick Status: ready --> <refentry id="function.call-user-func"> <refnamediv> <refname>call_user_func</refname> @@ -89,8 +89,9 @@ </note> <para> Voir aussi - <function>is_callable</function> et - <function>call_user_func_array</function>. + <function>is_callable</function>, + <function>call_user_func_array</function> et + &seealso.callback;. </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/funchand/functions/func-get-args.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-fr/reference/funchand/functions/func-get-args.xml diff -u phpdoc-fr/reference/funchand/functions/func-get-args.xml:1.9 phpdoc-fr/reference/funchand/functions/func-get-args.xml:1.10 --- phpdoc-fr/reference/funchand/functions/func-get-args.xml:1.9 Mon Jun 7 15:14:49 2004 +++ phpdoc-fr/reference/funchand/functions/func-get-args.xml Thu Oct 28 10:48:16 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <refentry id="function.func-get-args"> <refnamediv> <refname>func_get_args</refname> @@ -20,7 +20,16 @@ de la liste d'arguments de la fonction. <function>func_get_args</function> générera une alerte si elle est appelée hors d'une fonction. + Cette fonction ne peut être directement utilisée en tant que paramètre d'une fonction. + A la place, son résultat peut être assigné à une variable, qui peut être passée + à une fonction. </simpara> + <note> + <simpara> + Cette fonction retourne uniquement des arguments passés, et ne compte + pas en tant qu'arguments par défaut (non passés). + </simpara> + </note> <para> <example> <title>Exemple avec <function>func_get_args</function></title> http://cvs.php.net/diff.php/phpdoc-fr/reference/funchand/functions/func-get-arg.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-fr/reference/funchand/functions/func-get-arg.xml diff -u phpdoc-fr/reference/funchand/functions/func-get-arg.xml:1.9 phpdoc-fr/reference/funchand/functions/func-get-arg.xml:1.10 --- phpdoc-fr/reference/funchand/functions/func-get-arg.xml:1.9 Mon Aug 2 06:31:08 2004 +++ phpdoc-fr/reference/funchand/functions/func-get-arg.xml Thu Oct 28 10:48:16 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <refentry id="function.func-get-arg"> <refnamediv> <refname>func_get_arg</refname> @@ -21,6 +21,9 @@ comptés en commençant à zéro. <function>func_get_arg</function> générera une alerte si elle est appelée hors d'une fonction. + Cette fonction ne peut être directement utilisée en tant que paramètre d'une fonction. + A la place, son résultat peut être assigné à une variable, qui peut être passée + à une fonction. </simpara> <simpara> Si <parameter>arg_num</parameter> est plus grand que le nombre http://cvs.php.net/diff.php/phpdoc-fr/reference/funchand/functions/func-num-args.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/funchand/functions/func-num-args.xml diff -u phpdoc-fr/reference/funchand/functions/func-num-args.xml:1.7 phpdoc-fr/reference/funchand/functions/func-num-args.xml:1.8 --- phpdoc-fr/reference/funchand/functions/func-num-args.xml:1.7 Sun May 2 18:35:54 2004 +++ phpdoc-fr/reference/funchand/functions/func-num-args.xml Thu Oct 28 10:48:16 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <refentry id="function.func-num-args"> <refnamediv> <refname>func_num_args</refname> @@ -20,6 +20,9 @@ <function>func_num_args</function> générera une alerte si elle est appelée hors d'une fonction. + Cette fonction ne peut être directement utilisée en tant que paramètre d'une fonction. + A la place, son résultat peut être assigné à une variable, qui peut être passée + à une fonction. </simpara> <para> <example>
« previous php.doc.fr (#3547) next »