<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.errorfunc.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'errorfunc.constants.php',
    1 => 'Constantes pr&eacute;-d&eacute;finies',
    2 => 'Constantes pr&eacute;-d&eacute;finies',
  ),
  'up' => 
  array (
    0 => 'book.errorfunc.php',
    1 => 'Gestion des erreurs',
  ),
  'prev' => 
  array (
    0 => 'errorfunc.configuration.php',
    1 => 'Configuration &agrave; l\'ex&eacute;cution',
  ),
  'next' => 
  array (
    0 => 'errorfunc.examples.php',
    1 => 'Exemples',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/errorfunc/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="errorfunc.constants" class="appendix">
 <h1 class="title">Constantes pré-définies</h1>

 <p class="simpara">Les constantes listées ici sont
toujours disponibles dans PHP.</p>

 <p class="simpara">
  Les constantes suivantes (soit la valeur numérique correspondante, soit leur
  nom symbolique) sont utilisées comme un masque de bits pour spécifier les erreurs à signaler.
  Il est possible d&#039;utiliser
  <a href="language.operators.bitwise.php" class="link">les opérateurs binaires</a>
  pour combiner ces valeurs ou masquer certains types d&#039;erreurs.
 </p>

 <div class="tip"><strong class="tip">Astuce</strong>
  <p class="simpara">
   Les noms des constantes peuvent être utilisés dans <var class="filename">php.ini</var>
   au lieu des valeurs numériques brutes auxquelles elles correspondent.
   Cependant, seuls les opérateurs
   <code class="literal">|</code>,
   <code class="literal">~</code>,
   <code class="literal">^</code>,
   <code class="literal">!</code>,
   <code class="literal">&amp;</code>
   sont compris dans <var class="filename">php.ini</var>.
  </p>
 </div>

 <div class="warning"><strong class="warning">Avertissement</strong>
  <p class="simpara">
   Il n&#039;est pas possible d&#039;utiliser les noms symboliques en dehors de PHP.
   Par exemple, dans <var class="filename">httpd.conf</var> la valeur calculée du masque de bits doit être utilisée à la place.
  </p>
 </div>

 <dl id="errorfunc.constants.errorlevels">
  
   <dt id="constant.e-error">
    <strong><code><a href="errorfunc.constants.php#constant.e-error">E_ERROR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Erreurs fatales lors de l&#039;exécution.
     Celles-ci indiquent des erreurs dont il est impossible de se remettre,
     comme un problème d&#039;allocation de mémoire.
     L&#039;exécution du script est arrêtée.
    </span>
    <span class="simpara">
     Valeur de la constante : <code class="literal">1</code>
    </span>
   </dd>
  

  
   <dt id="constant.e-warning">
    <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Avertissements lors de l&#039;exécution (erreurs non fatales).
     L&#039;exécution du script n&#039;est pas interrompue.
    </span>
    <span class="simpara">
     Valeur de la constante : <code class="literal">2</code>
    </span>
   </dd>
  

  
   <dt id="constant.e-parse">
    <strong><code><a href="errorfunc.constants.php#constant.e-parse">E_PARSE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Erreurs d&#039;analyse au moment de la compilation.
     Les erreurs d&#039;analyse devraient uniquement être générées par l&#039;analyseur syntaxique.
    </span>
    <span class="simpara">
     Valeur de la constante : <code class="literal">4</code>
    </span>
   </dd>
  

  
   <dt id="constant.e-notice">
    <strong><code><a href="errorfunc.constants.php#constant.e-notice">E_NOTICE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Notifications d&#039;exécution.
     Indiquent que le script a rencontré quelque chose qui pourrait signaler une erreur,
     mais qui pourrait aussi se produire normalement lors de l&#039;exécution d&#039;un script.
    </span>
    <span class="simpara">
     Valeur de la constante : <code class="literal">8</code>
    </span>
   </dd>
  

  
   <dt id="constant.e-core-error">
    <strong><code><a href="errorfunc.constants.php#constant.e-core-error">E_CORE_ERROR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Erreurs fatales qui surviennent lors du démarrage initial de PHP.
     C&#039;est comme une <strong><code><a href="errorfunc.constants.php#constant.e-error">E_ERROR</a></code></strong>,
     sauf qu&#039;elle est générée par le cœur de PHP.
    </span>
    <span class="simpara">
     Valeur de la constante : <code class="literal">16</code>
    </span>
   </dd>
  

  
   <dt id="constant.e-core-warning">
    <strong><code><a href="errorfunc.constants.php#constant.e-core-warning">E_CORE_WARNING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Avertissements (erreurs non fatales) qui surviennent lors du démarrage initial de PHP.
     C&#039;est comme un <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong>,
     sauf qu&#039;il est généré par le cœur de PHP.
    </span>
    <span class="simpara">
     Valeur de la constante : <code class="literal">32</code>
    </span>
   </dd>
  

  
   <dt id="constant.e-compile-error">
    <strong><code><a href="errorfunc.constants.php#constant.e-compile-error">E_COMPILE_ERROR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Erreurs fatales de compilation.
     C&#039;est comme un <strong><code><a href="errorfunc.constants.php#constant.e-error">E_ERROR</a></code></strong>,
     sauf qu&#039;il est généré par le moteur de script Zend.
    </span>
    <span class="simpara">
     Valeur de la constante : <code class="literal">64</code>
    </span>
   </dd>
  

  
   <dt id="constant.e-compile-warning">
    <strong><code><a href="errorfunc.constants.php#constant.e-compile-warning">E_COMPILE_WARNING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Avertissements de compilation (erreurs non fatales).
     C&#039;est comme un <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong>,
     sauf qu&#039;il est généré par le moteur de script Zend.
    </span>
    <span class="simpara">
     Valeur de la constante : <code class="literal">128</code>
    </span>
   </dd>
  

  
   <dt id="constant.e-deprecated">
    <strong><code><a href="errorfunc.constants.php#constant.e-deprecated">E_DEPRECATED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Avis de dépréciation à l&#039;exécution.
     Activer ceci pour recevoir des avertissements concernant du code
     qui ne fonctionnera plus dans les futures versions.
    </span>
    <span class="simpara">
     Valeur de la constante : <code class="literal">8192</code>
    </span>
   </dd>
  

  
   <dt id="constant.e-user-error">
    <strong><code><a href="errorfunc.constants.php#constant.e-user-error">E_USER_ERROR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Message d&#039;erreur généré par l&#039;utilisateur.
     Cela ressemble à un <strong><code><a href="errorfunc.constants.php#constant.e-error">E_ERROR</a></code></strong>,
     sauf qu&#039;il est généré dans le code PHP en utilisant la fonction PHP
     <span class="function"><a href="function.trigger-error.php" class="function">trigger_error()</a></span>.
    </span>
    <span class="simpara">
     Valeur de la constante : <code class="literal">256</code>
    </span>
    <div class="warning"><strong class="warning">Avertissement</strong>
     <p class="simpara">
      L&#039;utilisation de cette constante avec <span class="function"><a href="function.trigger-error.php" class="function">trigger_error()</a></span> est
      dépréciée à partir de PHP 8.4.0.
      Il est recommandé de soit <a href="language.exceptions.php" class="link"><code class="literal">throw</code></a> une <span class="exceptionname"><a href="class.exception.php" class="exceptionname">Exception</a></span>
      ou d&#039;appeler <span class="function"><a href="function.exit.php" class="function">exit()</a></span> à la place.
     </p>
    </div>
   </dd>
  

  
   <dt id="constant.e-user-warning">
    <strong><code><a href="errorfunc.constants.php#constant.e-user-warning">E_USER_WARNING</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Message d&#039;avertissement généré par l&#039;utilisateur.
     Cela ressemble à un <strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong>,
     sauf qu&#039;il est généré dans le code PHP en utilisant la fonction PHP
     <span class="function"><a href="function.trigger-error.php" class="function">trigger_error()</a></span>.
    </span>
    <span class="simpara">
     Valeur de la constante : <code class="literal">512</code>
    </span>
   </dd>
  

  
   <dt id="constant.e-user-notice">
    <strong><code><a href="errorfunc.constants.php#constant.e-user-notice">E_USER_NOTICE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Message de notification généré par l&#039;utilisateur.
     Cela ressemble à un <strong><code><a href="errorfunc.constants.php#constant.e-notice">E_NOTICE</a></code></strong>,
     sauf qu&#039;il est généré dans le code PHP en utilisant la fonction PHP
     <span class="function"><a href="function.trigger-error.php" class="function">trigger_error()</a></span>.
    </span>
    <span class="simpara">
     Valeur de la constante : <code class="literal">1024</code>
    </span>
   </dd>
  

  
   <dt id="constant.e-user-deprecated">
    <strong><code><a href="errorfunc.constants.php#constant.e-user-deprecated">E_USER_DEPRECATED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Message de dépréciation généré par l&#039;utilisateur.
     Cela ressemble à un <strong><code><a href="errorfunc.constants.php#constant.e-deprecated">E_DEPRECATED</a></code></strong>,
     sauf qu&#039;il est généré dans le code PHP en utilisant la fonction PHP
     <span class="function"><a href="function.trigger-error.php" class="function">trigger_error()</a></span>.
    </span>
    <span class="simpara">
     Valeur de la constante : <code class="literal">16384</code>
    </span>
   </dd>
  

  
   <dt id="constant.e-strict">
    <strong><code><a href="errorfunc.constants.php#constant.e-strict">E_STRICT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Suggestions d&#039;exécution émises par PHP concernant le code exécuté
     pour garantir la compatibilité future.
    </span>
    <span class="simpara">
     Valeur de la constante : <code class="literal">2048</code>
    </span>
    <div class="warning"><strong class="warning">Avertissement</strong>
     <p class="simpara">
      Ce niveau d&#039;erreur n&#039;est pas utilisé,
      et est déprécié à partir de PHP 8.4.0.
     </p>
    </div>
   </dd>
  

  
   <dt id="constant.e-recoverable-error">
    <strong><code><a href="errorfunc.constants.php#constant.e-recoverable-error">E_RECOVERABLE_ERROR</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     &quot;Exceptions&quot; de l&#039;ancien moteur correspondant à une erreur fatale rattrapable.
     Semblable à <span class="exceptionname"><a href="class.error.php" class="exceptionname">Error</a></span> mais doit être capturée via un
     gestionnaire d&#039;erreurs défini par l&#039;utilisateur (voir <span class="function"><a href="function.set-error-handler.php" class="function">set_error_handler()</a></span>).
     Si elle n&#039;est pas gérée, cela se comporte comme <strong><code><a href="errorfunc.constants.php#constant.e-error">E_ERROR</a></code></strong>.
    </span>
    <span class="simpara">
     Valeur de la constante : <code class="literal">4096</code>
    </span>
    <blockquote class="note"><p><strong class="note">Note</strong>: 
     <span class="simpara">
      Ce niveau d&#039;erreur est effectivement inutilisé,
      le seul cas où cela peut se produire est lorsque l&#039;interprétation d&#039;un
      <a href="language.types.object.php" class="link">objet</a> en tant que <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> échoue.
      Cela ne peut se produire que pour des objets internes.
     </span>
     <span class="simpara">
      L&#039;exemple le plus courant, antérieur à PHP 8.4.0, est l&#039;utilisation d&#039;une
      instance <span class="classname"><a href="class.gmp.php" class="classname">GMP</a></span> dans une condition.
     </span>
    </p></blockquote>
   </dd>
  

  
   <dt id="constant.e-all">
    <strong><code><a href="errorfunc.constants.php#constant.e-all">E_ALL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Masque de bits qui contient toutes les erreurs, avertissements et notifications.
    </span>
    <span class="simpara">
     Valeur de la constante : <code class="literal">30719</code>
    </span>
    <div class="warning"><strong class="warning">Avertissement</strong>
     <p class="simpara">
      Avant PHP 8.4, la valeur de la constante était : <code class="literal">32767</code>.
     </p>
    </div>
   </dd>
  

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