<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.mcrypt.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.mcrypt-module-is-block-algorithm.php',
    1 => 'mcrypt_module_is_block_algorithm',
    2 => '检测指定算法是否为分组加密算法',
  ),
  'up' => 
  array (
    0 => 'ref.mcrypt.php',
    1 => 'Mcrypt 函数',
  ),
  'prev' => 
  array (
    0 => 'function.mcrypt-module-get-supported-key-sizes.php',
    1 => 'mcrypt_module_get_supported_key_sizes',
  ),
  'next' => 
  array (
    0 => 'function.mcrypt-module-is-block-algorithm-mode.php',
    1 => 'mcrypt_module_is_block_algorithm_mode',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/mcrypt/functions/mcrypt-module-is-block-algorithm.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.mcrypt-module-is-block-algorithm" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mcrypt_module_is_block_algorithm</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.2, PHP 5, PHP 7 &lt; 7.2.0, PECL mcrypt &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">mcrypt_module_is_block_algorithm</span> &mdash; <span class="dc-title">检测指定算法是否为分组加密算法</span></p>

 </div>
 <div id="function.mcrypt-module-is-block-algorithm-refsynopsisdiv">
  <div class="warning"><strong class="warning">警告</strong><p class="simpara">本函数已自 PHP 7.1.0 起<em>废弃</em>并将自
PHP 7.2.0 起<em>移除</em>。强烈建议不要使用本函数。</p></div>
 </div>
 <div class="refsect1 description" id="refsect1-function.mcrypt-module-is-block-algorithm-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mcrypt_module_is_block_algorithm</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$algorithm</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$lib_dir</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   如果指定算法是分组加密算法，返回 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>，
   反之返回 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.mcrypt-module-is-block-algorithm-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt><code class="parameter">algorithm</code></dt>
    <dd>
     <span class="simpara">
      要检测的算法。
     </span>
    </dd>
   
   
    <dt><code class="parameter">lib_dir</code></dt>
    <dd>
     <span class="simpara">
      可选参数 <code class="parameter">lib_dir</code>，
      表示在操作系统上包含算法模块的路径。
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.mcrypt-module-is-block-algorithm-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="simpara">
   如果指定算法是分组加密算法，返回 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>，
   反之返回 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。
  </p>
 </div>

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