<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.errorfunc.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.trigger-error.php',
    1 => 'trigger_error',
    2 => 'Kullanıcı seviyesinde bir hata/uyarı/bilgi iletisi &uuml;retir',
  ),
  'up' => 
  array (
    0 => 'ref.errorfunc.php',
    1 => 'Hata İşleme İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.set-exception-handler.php',
    1 => 'set_exception_handler',
  ),
  'next' => 
  array (
    0 => 'function.user-error.php',
    1 => 'user_error',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'tr',
    'path' => 'reference/errorfunc/functions/trigger-error.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.trigger-error" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">trigger_error</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.1, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">trigger_error</span> &mdash; <span class="dc-title">Kullanıcı seviyesinde bir hata/uyarı/bilgi iletisi üretir
  </span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.trigger-error-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>trigger_error</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$ileti</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$hata_seviyesi</code><span class="initializer"> = <strong><code><a href="errorfunc.constants.php#constant.e-user-notice">E_USER_NOTICE</a></code></strong></span></span>): <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>

  <p class="para rdfs-comment">
   Bir kullanıcı hatası durumunu tetiklemek için kullanır. Yerleşik bir hata
   eylemcisi ile birlikte kullanılabileceği gibi
   (<span class="function"><a href="function.set-error-handler.php" class="function">set_error_handler()</a></span> ile) yeni bir hata eylemcisi olarak
   bildirilmiş  bir kullanıcı tanımlı işlev ile birlikte de kullanılabilir.
  </p>
  <p class="para">
   Bu işlev çalışma anında, bir olağandışılık durumunda, belli bir yanıt
   üretmek gerektiğinde çok kullanışlıdır.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.trigger-error-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">ileti</code></dt>
     <dd>
      <p class="para">
       Tetiklenen hata için tasarlanmış hata iletisi. En fazla 1024 bayt
       uzunluğunda olabilir. 1024 bayttan sonraki karakterler kırpılır.
      </p>
     </dd>
    
    
     <dt><code class="parameter">hata_seviyesi</code></dt>
     <dd>
      <p class="para">
       Tetiklenen hata için tasarlanmış hata türü. Sadece
       <strong><code>E_USER_</code></strong>* ailesinden sabitler belirtilebilir.
       <strong><code><a href="errorfunc.constants.php#constant.e-user-notice">E_USER_NOTICE</a></code></strong> öntanımlıdır.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.trigger-error-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Daima <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> döndürür.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.trigger-error-errors">
  <h3 class="title">Hatalar/İstisnalar</h3>
  <p class="para">
   <code class="parameter">hata_seviyesi</code> şunlardan biri değilse
   <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span> oluşur:
   <strong><code><a href="errorfunc.constants.php#constant.e-user-error">E_USER_ERROR</a></code></strong>,
   <strong><code><a href="errorfunc.constants.php#constant.e-user-warning">E_USER_WARNING</a></code></strong>,
   <strong><code><a href="errorfunc.constants.php#constant.e-user-notice">E_USER_NOTICE</a></code></strong>,
   <strong><code><a href="errorfunc.constants.php#constant.e-user-deprecated">E_USER_DEPRECATED</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.trigger-error-changelog">
  <h3 class="title">Sürüm Bilgisi</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Sürüm: </th>
      <th>Açıklama</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.0.0</td>
      <td>
       Geçersiz bir <code class="parameter">hata_seviyesi</code> belirtilirse artık
       <span class="classname"><a href="class.valueerror.php" class="classname">ValueError</a></span> oluşuyor. Evvelce <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> dönerdi.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.trigger-error-examples">
  <h3 class="title">Örnekler</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Örnek 1 - <span class="function"><strong>trigger_error()</strong></span> örneği</strong></p>
    <div class="example-contents"><p>
     Daha kapsamlı bir örnek için <span class="function"><a href="function.set-error-handler.php" class="function">set_error_handler()</a></span>
     işlevine bakınız.
    </p></div>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">if (</span><span style="color: #0000BB">$divisor </span><span style="color: #007700">== </span><span style="color: #0000BB">0</span><span style="color: #007700">) {<br />    </span><span style="color: #0000BB">trigger_error</span><span style="color: #007700">(</span><span style="color: #DD0000">"Sıfır bir bölen olamaz"</span><span style="color: #007700">, </span><span style="color: #0000BB">E_USER_ERROR</span><span style="color: #007700">);<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.trigger-error-notes">
  <h3 class="title">Notlar</h3>
  <div class="warning"><strong class="warning">Uyarı</strong>
   <p class="para">
     <code class="parameter">ileti</code> içindeki HTML öğeleri öncelenmez. Hata
     tarayıcıda gösterilecekse <span class="function"><a href="function.htmlentities.php" class="function">htmlentities()</a></span> kullanın.
   </p>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.trigger-error-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.error-reporting.php" class="function" rel="rdfs-seeAlso">error_reporting()</a> - Hangi PHP hatalarının raporlanacağını tanımlar</span></li>
    <li><span class="function"><a href="function.set-error-handler.php" class="function" rel="rdfs-seeAlso">set_error_handler()</a> - Kullanıcı tanımlı bir hata işleyici bildirir</span></li>
    <li><span class="function"><a href="function.restore-error-handler.php" class="function" rel="rdfs-seeAlso">restore_error_handler()</a> - Bir &ouml;nceki hata eylemcisini devreye sokar</span></li>
    <li><a href="errorfunc.constants.php" class="link">Hata seviyesi
    sabitleri</a></li>
   </ul>
  </p>
 </div>

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