1
0
mirror of https://github.com/php/doc-fr.git synced 2026-03-24 15:12:13 +01:00
Files
archived-doc-fr/language/predefined/weakreference.xml
Louis-Arnaud 4a7a8db617 Fix/language review (#2502)
language/: fix translation errors, grammar, terminology across 32 files

- Fix crypter/encrypter → chiffrer (TRADUCTIONS.txt)
- Fix depuis → à partir de (TRADUCTIONS.txt)
- Fix gender agreements (enveloppe, valeur, clé are feminine)
- Fix typos: supergloables, syntax, object→objet, affichier
- Fix conjugations: inclus→inclut, envoi→envoie, cloner→clonée
- Fix untranslated content: yielded, bitshift, code comments
- Fix incorrect translations: peer cert, consistency, thrown→lancé
- Align code examples with EN source

* Fix rewind.xml: rétablir la traduction FR des commentaires et strings
2026-02-25 06:54:04 +01:00

134 lines
3.8 KiB
XML
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 7caf0c13762e7db3e7002b1286f23b65d940e2d0 Maintainer: girgias Status: ready -->
<!-- Reviewed: no -->
<reference xml:id="class.weakreference" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>La classe WeakReference</title>
<titleabbrev>WeakReference</titleabbrev>
<partintro>
<!-- {{{ WeakReference intro -->
<section xml:id="weakreference.intro">
&reftitle.intro;
<para>
Les références faibles permettent au programmeur de conserver une
référence à un objet sans en empêcher sa destruction.
Elles sont utiles pour implémenter des structures telles que des caches.
Si l'objet d'origine a été détruit, &null; sera retourné
lors de l'appel de la méthode <methodname>WeakReference::get</methodname>.
L'objet d'origine sera détruit lorsque le
<link linkend="features.gc.refcounting-basics">compteur de références</link> atteint zéro ;
la création de références faibles n'augmente pas le <literal>compteur de références</literal> de l'objet référencé.
</para>
<para>
Les <classname>WeakReference</classname>s ne peuvent pas être sérialisées.
</para>
</section>
<!-- }}} -->
<section xml:id="weakreference.synopsis">
&reftitle.classsynopsis;
<!-- {{{ Synopsis -->
<classsynopsis class="class">
<ooclass>
<modifier>final</modifier>
<classname>WeakReference</classname>
</ooclass>
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.weakreference')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='WeakReference'])">
<xi:fallback/>
</xi:include>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.weakreference')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='WeakReference'])">
<xi:fallback/>
</xi:include>
</classsynopsis>
<!-- }}} -->
</section>
<section xml:id="weakreference.examples">
<title>Exemple avec WeakReference</title>
<para>
<example xml:id="weakreference.basic-example">
<title>Utilisation Simple de WeakReference</title>
<programlisting role="php">
<![CDATA[
<?php
$obj = new stdClass();
$weakref = WeakReference::create($obj);
var_dump($weakref->get());
unset($obj);
var_dump($weakref->get());
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
object(stdClass)#1 (0) {
}
NULL
]]>
</screen>
</example>
</para>
</section>
<section role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
La sortie de <methodname>WeakReference::__debugInfo</methodname> inclut désormais l&apos;objet référencé, ou <literal>NULL</literal> si la référence n&apos;est plus valide.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</section>
</partintro>
&language.predefined.weakreference.construct;
&language.predefined.weakreference.create;
&language.predefined.weakreference.get;
</reference>
<!-- 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
-->