svn: /phpdoc/fr/trunk/ appendices/migration73/new-functions.xml reference/info/functions/gc-status.xml
| From: | George Peter Banyard | Date: | Sun, 03 Feb 2019 22:12:05 +0000 |
| Subject: | svn: /phpdoc/fr/trunk/ appendices/migration73/new-functions.xml reference/info/functions/gc-status.xml | ||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-12738@lists.php.net to get a copy of this message | ||
girgias Sun, 03 Feb 2019 22:12:05 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=346692
Log:
Translated gc-status related doc into French.
Changed paths:
U phpdoc/fr/trunk/appendices/migration73/new-functions.xml
A phpdoc/fr/trunk/reference/info/functions/gc-status.xml
Modified: phpdoc/fr/trunk/appendices/migration73/new-functions.xml
===================================================================
--- phpdoc/fr/trunk/appendices/migration73/new-functions.xml 2019-02-03 16:03:16 UTC (rev 346691)
+++ phpdoc/fr/trunk/appendices/migration73/new-functions.xml 2019-02-03 22:12:05 UTC (rev 346692)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 346281 Maintainer: girgias Status: ready -->
-<!-- Reviewed: no -->
+<!-- EN-Revision: 346688 Maintainer: girgias Status: ready -->
+<!-- Reviewed: yes -->
<sect1 xml:id="migration73.new-functions">
<title>Nouvelles fonctions</title>
@@ -22,6 +22,11 @@
</listitem>
<listitem>
<simpara>
+ <function>gc_status</function>
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
<function>hrtime</function>
</simpara>
</listitem>
Added: phpdoc/fr/trunk/reference/info/functions/gc-status.xml
===================================================================
--- phpdoc/fr/trunk/reference/info/functions/gc-status.xml (rev 0)
+++ phpdoc/fr/trunk/reference/info/functions/gc-status.xml 2019-02-03 22:12:05 UTC (rev 346692)
@@ -0,0 +1,130 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 0 Maintainer: girgias Status: ready -->
+<!-- Reviewed: yes -->
+
+<refentry xml:id="function.gc-status" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink">
+ <refnamediv>
+ <refname>gc_status</refname>
+ <refpurpose>Récupère les informations à propos du ramasse-miettes</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>array</type><methodname>gc_status</methodname>
+ <void />
+ </methodsynopsis>
+ <para>
+ Récupère les informations à propos de l'état actuel du ramasse-miettes.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ &no.function.parameters;
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Retourne un &array; associatif avec les éléments suivants :
+ <itemizedlist>
+ <listitem>
+ <simpara>
+ <literal>"runs"</literal>
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <literal>"collected"</literal>
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <literal>"threshold"</literal>
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ <literal>"roots"</literal>
+ </simpara>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>Utilisation de <function>gc_status</function></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+// créer l'arbre d'object qui nécessite la collection du ramasse-miettes
+$a = new stdClass();
+$a->b = [];
+for ($i = 0; $i < 100000; $i++) {
+ $b = new stdClass();
+ $b->a = $a;
+ $a->b[] = $b;
+}
+unset($a);
+unset($b);
+gc_collect_cycles();
+
+var_dump(gc_status());
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+array(4) {
+ ["runs"]=>
+ int(5)
+ ["collected"]=>
+ int(100002)
+ ["threshold"]=>
+ int(50001)
+ ["roots"]=>
+ int(0)
+}
+]]>
+ </screen>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><link linkend="features.gc">Ramasse-miettes (Garbage
Collection)</link></member>
+ </simplelist>
+ </para>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->
Property changes on: phpdoc/fr/trunk/reference/info/functions/gc-status.xml
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
\ No newline at end of property