[DOC-CVS] [doc-en] master: Enable (and fix) hash functions for WASM

[email protected] (Derick Rethans)
Newsgroups php.doc.cvs
Message-ID <[email protected]>
Author: Derick Rethans (derickr)
Date: 2025-07-30T15:48:09+01:00

Commit: https://github.com/php/doc-en/commit/a19139232af73a3c2054fcf5a687640ade63a393
Raw diff: https://github.com/php/doc-en/commit/a19139232af73a3c2054fcf5a687640ade63a393.diff

Enable (and fix) hash functions for WASM

Changed paths:
  M  reference/hash/book.xml
  M  reference/hash/functions/hash-hkdf.xml
  M  reference/hash/functions/hash-update-stream.xml


Diff:

diff --git a/reference/hash/book.xml b/reference/hash/book.xml
index 7c980db17588..c0edffe42323 100644
--- a/reference/hash/book.xml
+++ b/reference/hash/book.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<book xml:id="book.hash" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+<book xml:id="book.hash" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" annotations="interactive">
  <?phpdoc extension-membership="core" ?>
  <title>HASH Message Digest Framework</title>
  <titleabbrev>Hash</titleabbrev>
diff --git a/reference/hash/functions/hash-hkdf.xml b/reference/hash/functions/hash-hkdf.xml
index 34a313273ee9..03c120bd0886 100644
--- a/reference/hash/functions/hash-hkdf.xml
+++ b/reference/hash/functions/hash-hkdf.xml
@@ -125,6 +125,11 @@
 
  <refsect1 role="examples">
   &reftitle.examples;
+  <para>
+   The example below produces a pair of separate keys, suitable for creation
+   of an encrypt-then-HMAC construct, using AES-256 and SHA-256 for encryption
+   and authentication respectively.
+  </para>
   <para>
    <example>
     <title><function>hash_hkdf</function> example</title>
@@ -143,11 +148,6 @@ var_dump($encryptionKey !== $authenticationKey); // bool(true)
 ?>
 ]]>
     </programlisting>
-    <para>
-     The above example produces a pair of separate keys, suitable for creation of an
-     encrypt-then-HMAC construct, using AES-256 and SHA-256 for encryption and
-     authentication respectively.
-    </para>
    </example>
   </para>
  </refsect1>
diff --git a/reference/hash/functions/hash-update-stream.xml b/reference/hash/functions/hash-update-stream.xml
index 2ace873f548a..4e29d092689e 100644
--- a/reference/hash/functions/hash-update-stream.xml
+++ b/reference/hash/functions/hash-update-stream.xml
@@ -114,7 +114,6 @@ echo hash_final($ctx);
    <simplelist>
     <member><function>hash_init</function></member>
     <member><function>hash_update</function></member>
-    <member><function>hash_update_stream</function></member>
     <member><function>hash_final</function></member>
    </simplelist>
   </para>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.