[doc-en] master: ext/phar: Phar::setSignatureAlgorithm: document the SHA256 default (#6038)

From: Date: Wed, 04 Nov 2026 14:03:52 +0000
Subject: [doc-en] master: ext/phar: Phar::setSignatureAlgorithm: document the SHA256 default (#6038)
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-23912@lists.php.net to get a copy of this message
Author: Michele Locati (mlocati) Committer: GitHub (web-flow) Pusher: jordikroon Date: 2026-11-04T15:03:49+01:00 Commit: https://github.com/php/doc-en/commit/6aa08060ade449fe752d743e766fef75a2e9295a Raw diff: https://github.com/php/doc-en/commit/6aa08060ade449fe752d743e766fef75a2e9295a.diff ext/phar: Phar::setSignatureAlgorithm: document the SHA256 default (#6038) * Phar::setSignatureAlgorithm: document the SHA256 default The default changed from SHA1 in php/php-src@8bb0c74e243 (PHP 8.1.0). Changed paths: M reference/phar/Phar/setSignatureAlgorithm.xml Diff: diff --git a/reference/phar/Phar/setSignatureAlgorithm.xml b/reference/phar/Phar/setSignatureAlgorithm.xml index d2dd12ef2ab8..6d20421448d9 100644 --- a/reference/phar/Phar/setSignatureAlgorithm.xml +++ b/reference/phar/Phar/setSignatureAlgorithm.xml @@ -21,13 +21,14 @@ <constant>Phar::SHA1</constant>, <constant>Phar::SHA256</constant>, <constant>Phar::SHA512</constant>, or <constant>Phar::OPENSSL</constant>. </para> - <para> + <simpara> Note that all executable phar archives have a signature created - automatically, <literal>SHA1</literal> by default. data tar- or zip-based archives + automatically, <literal>SHA256</literal> by default (<literal>SHA1</literal> prior to + PHP 8.1.0). data tar- or zip-based archives (archives created with the <classname>PharData</classname> class) must have their signature created and set explicitly via <function>Phar::setSignatureAlgorithm</function>. - </para> + </simpara> </refsect1> <refsect1 role="parameters">

« previous php.doc.cvs (#23912) next »