<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.rarexception.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'rarexception.isusingexceptions.php',
    1 => 'RarException::isUsingExceptions',
    2 => 'V&eacute;rifie si le gestionnaire d\'erreur utilise les exceptions ou non',
  ),
  'up' => 
  array (
    0 => 'class.rarexception.php',
    1 => 'RarException',
  ),
  'prev' => 
  array (
    0 => 'class.rarexception.php',
    1 => 'RarException',
  ),
  'next' => 
  array (
    0 => 'rarexception.setusingexceptions.php',
    1 => 'RarException::setUsingExceptions',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/rar/rarexception/isusingexceptions.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="rarexception.isusingexceptions" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">RarException::isUsingExceptions</h1>
  <p class="verinfo">(PECL rar &gt;= 2.0.0)</p><p class="refpurpose"><span class="refname">RarException::isUsingExceptions</span> &mdash; <span class="dc-title">Vérifie si le gestionnaire d&#039;erreur utilise les exceptions ou non</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-rarexception.isusingexceptions-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">static</span> <span class="methodname"><strong>RarException::isUsingExceptions</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Vérifie si les fonctions RAR émettent des alertes et retournent des valeurs d&#039;erreur
   ou bien si elles émettent des exceptions (n&#039;incluent pas des erreurs de syntaxe
   telles que le fait de passer des types incorrects comme arguments).
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-rarexception.isusingexceptions-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">Cette fonction ne contient aucun paramètre.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-rarexception.isusingexceptions-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="simpara">
   Retourne <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> si les exceptions sont utilisées, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> sinon.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-rarexception.isusingexceptions-examples">
  <h3 class="title">Exemples</h3>
  <div class="example" id="example-1">
   <p><strong>Exemple #1 Exemple avec <span class="function"><strong>RarException::isUsingExceptions()</strong></span></strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">// Par défaut, les exceptions ne sont pas utilisées<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">RarException</span><span style="color: #007700">::</span><span style="color: #0000BB">isUsingExceptions</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>Résultat de l&#039;exemple ci-dessus est similaire à :</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">bool(false)</pre>
</div>
   </div>
  </div>
 </div>



 <div class="refsect1 seealso" id="refsect1-rarexception.isusingexceptions-seealso">
  <h3 class="title">Voir aussi</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="rarexception.setusingexceptions.php" class="methodname" rel="rdfs-seeAlso">RarException::setUsingExceptions()</a> - Active ou d&eacute;sactive les exceptions dans le gestionnaire d'erreurs</span></li>
  </ul>
 </div>


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