cvs: phpdoc-fr /reference/sockets/functions socket-create-pair.xml socket-send.xml socket-sendto.xml /reference/stream/functions
stream-context-set-option.xml stream-context-set-params.xml stream-notification-callback.xml stream-socket-pair.xml

From: Date: Thu, 29 Jan 2009 21:28:53 +0000
Subject: cvs: phpdoc-fr /reference/sockets/functions socket-create-pair.xml socket-send.xml socket-sendto.xml /reference/stream/functions
stream-context-set-option.xml stream-context-set-params.xml stream-notification-callback.xml stream-socket-pair.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-6534@lists.php.net to get a copy of this message
yannick Thu Jan 29 21:28:53 2009 UTC Modified files: /phpdoc-fr/reference/sockets/functions socket-create-pair.xml socket-send.xml socket-sendto.xml /phpdoc-fr/reference/stream/functions stream-context-set-params.xml stream-notification-callback.xml stream-socket-pair.xml stream-context-set-option.xml Log: sync with EN #new tool

http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/sockets/functions/socket-create-pair.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-fr/reference/sockets/functions/socket-create-pair.xml diff -u phpdoc-fr/reference/sockets/functions/socket-create-pair.xml:1.16 phpdoc-fr/reference/sockets/functions/socket-create-pair.xml:1.17 --- phpdoc-fr/reference/sockets/functions/socket-create-pair.xml:1.16 Fri May 23 13:46:24 2008 +++ phpdoc-fr/reference/sockets/functions/socket-create-pair.xml Thu Jan 29 21:28:51 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.19 Maintainer: yannick Status: ready --> +<!-- EN-Revision: 1.20 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.socket-create-pair"> @@ -89,6 +89,36 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + Cette fonction a été ré-activée sous Windows. + </entry> + </row> + <row> + <entry>4.3.0</entry> + <entry> + Cette fonction, à cause d'un bogue, a été désactivée sous Windows. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -98,8 +128,12 @@ <![CDATA[ <?php $sockets = array(); + +/* On Windows we need to use AF_INET */ +$domain = (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN' ? AF_INET : AF_UNIX); + /* Création de la paire de sockets */ -if (socket_create_pair(AF_UNIX, SOCK_STREAM, 0, $sockets) === false) { +if (socket_create_pair($domain, SOCK_STREAM, 0, $sockets) === false) { echo "socket_create_pair a échoué. Raison : ".socket_strerror(socket_last_error()); } /* Send and Recieve Data */ http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/sockets/functions/socket-send.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-fr/reference/sockets/functions/socket-send.xml diff -u phpdoc-fr/reference/sockets/functions/socket-send.xml:1.12 phpdoc-fr/reference/sockets/functions/socket-send.xml:1.13 --- phpdoc-fr/reference/sockets/functions/socket-send.xml:1.12 Mon Jun 2 06:55:13 2008 +++ phpdoc-fr/reference/sockets/functions/socket-send.xml Thu Jan 29 21:28:51 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.10 Maintainer: yannick Status: ready --> +<!-- EN-Revision: 1.11 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.socket-send"> @@ -107,6 +107,7 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> + Retourne le nombre d'octets envoyés, ou &false; si une erreur survient. </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/sockets/functions/socket-sendto.xml?r1=1.14&r2=1.15&diff_format=u Index: phpdoc-fr/reference/sockets/functions/socket-sendto.xml diff -u phpdoc-fr/reference/sockets/functions/socket-sendto.xml:1.14 phpdoc-fr/reference/sockets/functions/socket-sendto.xml:1.15 --- phpdoc-fr/reference/sockets/functions/socket-sendto.xml:1.14 Thu Jan 22 19:57:29 2009 +++ phpdoc-fr/reference/sockets/functions/socket-sendto.xml Thu Jan 29 21:28:51 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> +<!-- EN-Revision: 1.14 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.socket-sendto"> @@ -127,7 +127,7 @@ &reftitle.returnvalues; <para> <function>socket_sendto</function> retourne le nombre d'octets - envoyés sur l'hôte distant ou -1 si une erreur survient. + envoyés sur l'hôte distant ou &false; si une erreur survient. </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/stream/functions/stream-context-set-params.xml?r1=1.16&r2=1.17&diff_format=u Index: phpdoc-fr/reference/stream/functions/stream-context-set-params.xml diff -u phpdoc-fr/reference/stream/functions/stream-context-set-params.xml:1.16 phpdoc-fr/reference/stream/functions/stream-context-set-params.xml:1.17 --- phpdoc-fr/reference/stream/functions/stream-context-set-params.xml:1.16 Tue Mar 25 00:09:32 2008 +++ phpdoc-fr/reference/stream/functions/stream-context-set-params.xml Thu Jan 29 21:28:52 2009 @@ -1,29 +1,60 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.16 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.17 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.stream-context-set-params" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>stream_context_set_params</refname> - <refpurpose>Configure les paramètres pour un flux/gestionnaire/contexte</refpurpose> + <refpurpose>Configure les paramètres pour un flux/gestionnaire/contexte</refpurpose> </refnamediv> - <refsect1> + + <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>stream_context_set_params</methodname> <methodparam><type>resource</type><parameter>stream_or_context</parameter></methodparam> <methodparam><type>array</type><parameter>params</parameter></methodparam> </methodsynopsis> - <simpara> - <function>stream_context_set_params</function> configure les paramètres - pour un flux, un gestionnaire ou un contexte. - <parameter>params</parameter> doit être un tableau associatif avec la structure - suivante : - <literal>$params['nom_parametre'] = "valeur_parametre";</literal>. - </simpara> - <table> - <title>Paramètres</title> + <para> + Définit les paramètres sur le contexte spécifié. + </para> + </refsect1> + + <refsect1 role="parameters"><!-- {{{ --> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>stream_or_context</parameter></term> + <listitem> + <para> + Le flux ou le contexte sur lequel on applique les paramètres. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>params</parameter></term> + <listitem> + <para> + Un tableau de paramètres à définir. + </para> + <note> + <para> + Le paramètre <parameter>params</parameter> doit être un + tableau associatif, au format : + <literal>$params['paramname'] = "paramvalue";</literal>. + </para> + </note> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1><!-- }}} --> + + <refsect1 role="options"><!-- {{{ --> + <title>Paramètres supportés</title> + <informaltable> <tgroup cols="2"> <thead> <row> @@ -37,7 +68,7 @@ <entry> Nom de la fonction utilisateur appelée dès qu'un flux génère une notification. - </entry> + </entry> </row> <row> <entry><literal>options</literal></entry> @@ -48,8 +79,16 @@ </row> </tbody> </tgroup> - </table> - </refsect1> + </informaltable> + </refsect1><!-- }}} --> + + <refsect1 role="returnvalues"><!-- {{{ --> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1><!-- }}} --> + </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/stream/functions/stream-notification-callback.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc-fr/reference/stream/functions/stream-notification-callback.xml diff -u phpdoc-fr/reference/stream/functions/stream-notification-callback.xml:1.1 phpdoc-fr/reference/stream/functions/stream-notification-callback.xml:1.2 --- phpdoc-fr/reference/stream/functions/stream-notification-callback.xml:1.1 Fri Jun 6 17:16:19 2008 +++ phpdoc-fr/reference/stream/functions/stream-notification-callback.xml Thu Jan 29 21:28:52 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry xml:id="function.stream-notification-callback" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -21,7 +21,9 @@ <methodparam><type>int</type><parameter>bytes_max</parameter></methodparam> </methodsynopsis> <para> - Une fonction de <type>callback</type>, appelée lors d'un événement. + Une fonction de <type>callback</type>, utilisée par le + <link linkend="context.params.notification">paramètre de contexte notification</link>, + appelé lors d'un événement. </para> <note> <para> @@ -123,7 +125,7 @@ break; case STREAM_NOTIFY_CONNECT: - echo "Conntecté..."; + echo "Connecté..."; break; case STREAM_NOTIFY_FILE_SIZE_IS: @@ -150,14 +152,14 @@ &example.outputs.similar; <screen> <![CDATA[ -Conntecté... +Connecté... Type mime trouvé : text/html; charset=utf-8 Redirection vers : http://no.php.net/contact -Conntecté... +Connecté... Récupération de la taille du fichier : 0 Type mime trouvé : text/html; charset=utf-8 Redirection vers : http://no.php.net/contact.php -Conntecté... +Connecté... Récupération de la taille du fichier : 4589 Type mime trouvé : text/html;charset=utf-8 En cours de téléchargement, déjà 0 octets transférés @@ -202,7 +204,7 @@ break; case STREAM_NOTIFY_CONNECT: - echo "Conntecté...\n"; + echo "Connecté...\n"; break; case STREAM_NOTIFY_FILE_SIZE_IS: @@ -251,10 +253,10 @@ </para> <screen> <![CDATA[ -Conntecté... +Connecté... Type Mime : text/html; charset=utf-8 Redirection vers : http://no2.php.net/distributions/php-5.2.5.tar.bz2 -Conntecté... +Connecté... Taille du fichier : 7773024 Type Mime : application/octet-stream [========================================> ] 40% (3076/7590 kb) http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/stream/functions/stream-socket-pair.xml?r1=1.6&r2=1.7&diff_format=u Index: phpdoc-fr/reference/stream/functions/stream-socket-pair.xml diff -u phpdoc-fr/reference/stream/functions/stream-socket-pair.xml:1.6 phpdoc-fr/reference/stream/functions/stream-socket-pair.xml:1.7 --- phpdoc-fr/reference/stream/functions/stream-socket-pair.xml:1.6 Sat May 31 23:01:17 2008 +++ phpdoc-fr/reference/stream/functions/stream-socket-pair.xml Thu Jan 29 21:28:52 2009 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.stream-socket-pair" xmlns="http://docbook.org/ns/docbook"> @@ -82,6 +82,30 @@ </para> </refsect1> + <refsect1 role="changelog"> + &reftitle.changelog; + <para> + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>&Version;</entry> + <entry>&Description;</entry> + </row> + </thead> + <tbody> + <row> + <entry>5.3.0</entry> + <entry> + Cette fonction est maintenant disponible sous Windows. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -134,11 +158,6 @@ </para> </refsect1> - <refsect1 role="notes"> - &reftitle.notes; - &note.no-windows; - </refsect1> - </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/stream/functions/stream-context-set-option.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-fr/reference/stream/functions/stream-context-set-option.xml diff -u phpdoc-fr/reference/stream/functions/stream-context-set-option.xml:1.12 phpdoc-fr/reference/stream/functions/stream-context-set-option.xml:1.13 --- phpdoc-fr/reference/stream/functions/stream-context-set-option.xml:1.12 Tue Mar 25 00:09:32 2008 +++ phpdoc-fr/reference/stream/functions/stream-context-set-option.xml Thu Jan 29 21:28:52 2009 @@ -1,33 +1,74 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry xml:id="function.stream-context-set-option" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>stream_context_set_option</refname> - <refpurpose>Configure une option pour un flux/gestionnaire/contexte</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>stream_context_set_option</methodname> - <methodparam><type>resource</type><parameter>stream_or_context</parameter></methodparam> - <methodparam><type>string</type><parameter>wrapper</parameter></methodparam> - <methodparam><type>string</type><parameter>option</parameter></methodparam> - <methodparam><type>mixed</type><parameter>value</parameter></methodparam> - </methodsynopsis> - <methodsynopsis> - <type>bool</type><methodname>stream_context_set_option</methodname> - <methodparam><type>resource</type><parameter>stream_or_context</parameter></methodparam> - <methodparam><type>array</type><parameter>options</parameter></methodparam> - </methodsynopsis> - <simpara> - <function>stream_context_set_option</function> configure l'option - <parameter>option</parameter> avec la nouvelle valeur <parameter>value</parameter> - le flux ou le gestionnaire ou le contexte <parameter>wrapper</parameter>. - </simpara> - </refsect1> - </refentry> + +<refentry xml:id="function.stream-context-set-option" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>stream_context_set_option</refname> + <refpurpose>Configure une option pour un flux/gestionnaire/contexte</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>stream_context_set_option</methodname> + <methodparam><type>resource</type><parameter>stream_or_context</parameter></methodparam> + <methodparam><type>string</type><parameter>wrapper</parameter></methodparam> + <methodparam><type>string</type><parameter>option</parameter></methodparam> + <methodparam><type>mixed</type><parameter>value</parameter></methodparam> + </methodsynopsis> + <methodsynopsis> + <type>bool</type><methodname>stream_context_set_option</methodname> + <methodparam><type>resource</type><parameter>stream_or_context</parameter></methodparam> + <methodparam><type>array</type><parameter>options</parameter></methodparam> + </methodsynopsis> + <simpara> + Définit une option sur le contexte spécifié. La valeur <parameter>value</parameter> + est définit pour l'<parameter>option</parameter> pour le contexte + <parameter>wrapper</parameter>. + </simpara> + </refsect1> + + <refsect1 role="parameters"><!-- {{{ --> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>stream_or_context</parameter></term> + <listitem> + <para> + Le flux ou la ressource de contexte sur lequel on applique l'option. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>options</parameter></term> + <listitem> + <para> + L'option à définir au contexte par défaut. + </para> + <note> + <para> + Le paramètre <parameter>options</parameter> doit être un + tableau associatif de tableaux associatifs, au format + <literal>$arr['wrapper']['option'] = $value</literal>. + </para> + </note> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1><!-- }}} --> + + <refsect1 role="returnvalues"><!-- {{{ --> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1><!-- }}} --> + +</refentry> <!-- Keep this comment at the end of the file Local variables:
« previous php.doc.fr (#6534) next »