<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.info.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.assert-options.php',
    1 => 'assert_options',
    2 => 'Imposta/ottiene vari parametri per assert',
  ),
  'up' => 
  array (
    0 => 'ref.info.php',
    1 => 'PHP Options/Info Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.assert.php',
    1 => 'assert',
  ),
  'next' => 
  array (
    0 => 'function.cli-get-process-title.php',
    1 => 'cli_get_process_title',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/info/functions/assert-options.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.assert-options" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">assert_options</h1>
    <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">assert_options</span> &mdash; <span class="dc-title">Imposta/ottiene vari parametri per assert</span></p>

   </div>
   <div class="refsect1 unknown-43" id="refsect1-function.assert-options-unknown-43">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>assert_options</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$what</code></span>, <span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$value</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>

    <p class="para rdfs-comment">
     Usando <span class="function"><strong>assert_options()</strong></span> si è in grado di impostare vari parametri
     di controllo per la funzione <span class="function"><a href="function.assert.php" class="function">assert()</a></span>, oppure
     ottenerne l&#039;impostazione corrente.
    </p>
    <table class="doctable table">
     <caption><strong>Opzioni di assert</strong></caption>
     
      <thead>
       <tr>
        <th>opzione</th>
        <th>parametro ini</th>
        <th>default</th>
        <th>descrizione</th>
       </tr>

      </thead>

      <tbody class="tbody">
       <tr>
        <td>ASSERT_ACTIVE</td>
        <td>assert.active</td>
        <td>1</td>
        <td>abilita l&#039;<span class="function"><a href="function.assert.php" class="function">assert()</a></span></td>
       </tr>

       <tr>
        <td>ASSERT_WARNING</td>
        <td>assert.warning</td>
        <td>1</td>
        <td>indica a PHP i generare un warning per ogni asserzione fallita</td>
       </tr>

       <tr>
        <td>ASSERT_BAIL</td>
        <td>assert.bail</td>
        <td>0</td>
        <td>termina l&#039;esecuzione alla prima asserzione fallita</td>
       </tr>

       <tr>
        <td>ASSERT_QUIET_EVAL</td>
        <td>assert.quiet_eval</td>
        <td>0</td>
        <td>
         disabilita la gestione degli errori nelle espressioni di asserzione         
        </td>
       </tr>

       <tr>
        <td>ASSERT_CALLBACK</td>
        <td>assert.callback</td>
        <td>(<strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>)</td>
        <td>funzione utente da richiamare per le asserzioni fallite</td>
       </tr>

      </tbody>
     
    </table>

    <p class="para">
     <span class="function"><strong>assert_options()</strong></span> restituirà l&#039;impostazione 
     originale di ogni opzione, oppure <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> se fallisce.
    </p>
   </div>

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