Files
doc-fr/reference/hash/functions/hash-copy.xml
Bruno Veyckemans b75f80928a Fix past participle agreements and cryptographic terminology.
Closes GH-12

Signed-off-by: George Peter Banyard <girgias@php.net>
2021-01-26 19:19:49 +00:00

121 lines
2.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: f3e46c7b29574706553f3d892c86aa78ded9e4c0 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.hash-copy" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>hash_copy</refname>
<refpurpose>Copie un contexte de hachage</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>HashContext</type><methodname>hash_copy</methodname>
<methodparam><type>HashContext</type><parameter>context</parameter></methodparam>
</methodsynopsis>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>context</parameter></term>
<listitem>
<para>
Contexte de hachage, retourné par la fonction
<function>hash_init</function>.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Retourne une copie du contexte de hachage Hashing Context.
</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>7.2.0</entry>
<entry>
Accepte et retourne une classe <classname>HashContext</classname> au lieu d'une ressource.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Exemple avec <function>hash_copy</function></title>
<programlisting role="php">
<![CDATA[
<?php
$context = hash_init("md5");
hash_update($context, "data");
/* copie le contexte afin de pouvoir continuer à l'utiliser */
$copy_context = hash_copy($context);
echo hash_final($context), "\n";
hash_update($copy_context, "data");
echo hash_final($copy_context), "\n";
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
8d777f385d3dfec8815d20f7496026dc
511ae0b1c13f95e5f08f1a0dd3da3d93
]]>
</screen>
</example>
</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
-->