<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.ziparchive.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'ziparchive.isencryptionmethoddupported.php',
    1 => 'ZipArchive::isEncryptionMethodSupported',
    2 => 'Check if a encryption method is supported by libzip',
  ),
  'up' => 
  array (
    0 => 'class.ziparchive.php',
    1 => 'ZipArchive',
  ),
  'prev' => 
  array (
    0 => 'ziparchive.iscompressionmethoddupported.php',
    1 => 'ZipArchive::isCompressionMethodSupported',
  ),
  'next' => 
  array (
    0 => 'ziparchive.locatename.php',
    1 => 'ZipArchive::locateName',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/zip/ziparchive/isencryptionmethoddupported.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ziparchive.isencryptionmethoddupported" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ZipArchive::isEncryptionMethodSupported</h1>
  <p class="verinfo">(PHP &gt;= 8.0.0, PECL zip &gt;= 1.19.0)</p><p class="refpurpose"><span class="refname">ZipArchive::isEncryptionMethodSupported</span> &mdash; <span class="dc-title">Check if a encryption method is supported by libzip</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-ziparchive.isencryptionmethoddupported-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>ZipArchive::isEncryptionMethodSupported</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$method</code></span>, <span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$enc</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong></span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Check if a compression method is supported by libzip.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-ziparchive.isencryptionmethoddupported-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">method</code></dt>
     <dd>
      <p class="para">
       The encryption method, one of the
       <strong><code><a href="zip.constants.php#ziparchive.constants.em-none">ZipArchive::EM_<span class="replaceable">*</span></a></code></strong> constants.
      </p>
     </dd>
    
    
     <dt><code class="parameter">enc</code></dt>
     <dd>
      <p class="para">
       If <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> check for encryption, else check for decryption.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-ziparchive.isencryptionmethoddupported-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   Restituisce <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> in caso di successo, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> in caso di fallimento.
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-ziparchive.isencryptionmethoddupported-notes">
  <h3 class="title">Note</h3>
  <blockquote class="note"><p><strong class="note">Nota</strong>: 
   <p class="para">
    This function is only available if built against libzip ≥ 1.7.0.
   </p>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-ziparchive.isencryptionmethoddupported-seealso">
  <h3 class="title">Vedere anche:</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="ziparchive.setencryptionindex.php" class="methodname" rel="rdfs-seeAlso">ZipArchive::setEncryptionIndex()</a> - Set the encryption method of an entry defined by its index</span></li>
    <li><span class="methodname"><a href="ziparchive.setencryptionname.php" class="methodname" rel="rdfs-seeAlso">ZipArchive::setEncryptionName()</a> - Set the encryption method of an entry defined by its name</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>