cvs: phpdoc-fr /reference/apache/functions apache-request-headers.xml /reference/array/functions array-merge.xml

From: Date: Fri, 27 Mar 2009 14:23:51 +0000
Subject: cvs: phpdoc-fr /reference/apache/functions apache-request-headers.xml /reference/array/functions array-merge.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-6869@lists.php.net to get a copy of this message
yannick Fri Mar 27 14:23:51 2009 UTC Modified files: /phpdoc-fr/reference/apache/functions apache-request-headers.xml /phpdoc-fr/reference/array/functions array-merge.xml Log: correct error http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/apache/functions/apache-request-headers.xml?r1=1.21&r2=1.22&diff_format=u Index: phpdoc-fr/reference/apache/functions/apache-request-headers.xml diff -u phpdoc-fr/reference/apache/functions/apache-request-headers.xml:1.21 phpdoc-fr/reference/apache/functions/apache-request-headers.xml:1.22 --- phpdoc-fr/reference/apache/functions/apache-request-headers.xml:1.21 Thu Mar 26 20:12:21 2009 +++ phpdoc-fr/reference/apache/functions/apache-request-headers.xml Fri Mar 27 14:23:51 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.21 $ --> +<!-- $Revision: 1.22 $ --> <!-- EN-Revision: 1.13 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> @@ -97,14 +97,6 @@ &reftitle.notes; <note> <para> - Avant la version PHP 4.3.0, <function>apache_request_headers</function> - était appelée <function>getallheaders</function>. Depuis PHP 4.3.0, - <function>getallheaders</function> est un alias de - <function>apache_request_headers</function>. - </para> - </note> - <note> - <para> Vous pouvez aussi obtenir les valeurs des variables <acronym>CGI</acronym> communes en les lisant dans l'environnement, ce qui fonctionne, que vous soyez ou non en module <productname>Apache</productname>. Utilisez @@ -113,7 +105,6 @@ disponibles. </para> </note> - &note.apache.nsapi-module; </refsect1> <refsect1 role="seealso"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/array/functions/array-merge.xml?r1=1.41&r2=1.42&diff_format=u Index: phpdoc-fr/reference/array/functions/array-merge.xml diff -u phpdoc-fr/reference/array/functions/array-merge.xml:1.41 phpdoc-fr/reference/array/functions/array-merge.xml:1.42 --- phpdoc-fr/reference/array/functions/array-merge.xml:1.41 Thu Mar 26 08:59:31 2009 +++ phpdoc-fr/reference/array/functions/array-merge.xml Fri Mar 27 14:23:51 2009 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.41 $ --> +<!-- $Revision: 1.42 $ --> <!-- EN-Revision: 1.23 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> @@ -32,6 +32,7 @@ numériques, les clés seront réindexées normalement. </para> </refsect1> + <refsect1 role="parameters"> &reftitle.parameters; <para> @@ -55,12 +56,71 @@ </variablelist> </para> </refsect1> + <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne le tableau résultant. </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.0.0</entry> + <entry> + <warning> + <para> + Le comportement de <function>array_merge</function> a été modifié en PHP 5. + Contrairement à PHP 4, <function>array_merge</function> n'accepte que + des paramètres de type <type>array</type>. Cependant, vous pouvez utiliser + le transtypage pour fusionner les autres types de valeurs. + Voyez l'exemple ci-dessous. + </para> + <para> + <example> + <title>Exemples PHP 5 avec <function>array_merge</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$beginning = 'foo'; +$end = array(1 => 'bar'); +$result = array_merge((array)$beginning, (array)$end); +print_r($result); +?> +]]> + </programlisting> + &example.outputs; + <screen role="php"> + <![CDATA[ + Array + ( + [0] => foo + [1] => bar + ) +]]> + </screen> + </example> + </para> + </warning> + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> @@ -145,63 +205,6 @@ </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.0.0</entry> - <entry> - <warning> - <para> - Le comportement de <function>array_merge</function> a été modifié en PHP 5. - Contrairement à PHP 4, <function>array_merge</function> n'accepte que - des paramètres de type <type>array</type>. Cependant, vous pouvez utiliser - le transtypage pour fusionner les autres types de valeurs. - Voyez l'exemple ci-dessous. - </para> - <para> - <example> - <title>Exemples PHP 5 avec <function>array_merge</function></title> - <programlisting role="php"> -<![CDATA[ -<?php -$beginning = 'foo'; -$end = array(1 => 'bar'); -$result = array_merge((array)$beginning, (array)$end); -print_r($result); -?> -]]> - </programlisting> - &example.outputs; - <screen role="php"> - <![CDATA[ - Array - ( - [0] => foo - [1] => bar - ) -]]> - </screen> - </example> - </para> - </warning> - </entry> - </row> - </tbody> - </tgroup> - </informaltable> - </para> - </refsect1> - <refsect1 role="seealso"> &reftitle.seealso; <para>

« previous php.doc.fr (#6869) next »