<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.misc.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.halt-compiler.php',
    1 => '__halt_compiler',
    2 => 'Beendet die Kompilerausf&uuml;hrung',
  ),
  'up' => 
  array (
    0 => 'ref.misc.php',
    1 => 'Sonstige Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.get-browser.php',
    1 => 'get_browser',
  ),
  'next' => 
  array (
    0 => 'function.highlight-file.php',
    1 => 'highlight_file',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/misc/functions/halt-compiler.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.halt-compiler" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">__halt_compiler</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.1.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">__halt_compiler</span> &mdash; <span class="dc-title">Beendet die Kompilerausführung</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.halt-compiler-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>__halt_compiler</strong></span>(): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="para rdfs-comment">
   Beendet die Kompilerausführung. Dies kann sinnvoll sein, wenn Daten
   in PHP-Skripte eingebettet sind, wie z. B. in Installationsdateien.
  </p>
  <p class="para">
   Die Byteposition, an der die Daten beginnen, kann über die Konstante
   <strong><code><a href="misc.constants.php#constant.compiler-halt-offset">__COMPILER_HALT_OFFSET__</a></code></strong> ermittelt werden, die
   nur definiert ist, wenn die Funktion <span class="function"><strong>__halt_compiler()</strong></span>
   in der Datei benutzt wird.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.halt-compiler-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">Diese Funktion besitzt keine Parameter.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.halt-compiler-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Es wird kein Wert zurückgegeben.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.halt-compiler-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Beispiel #1 Ein <span class="function"><strong>__halt_compiler()</strong></span>-Beispiel</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #FF8000">// Datei öffnen<br /></span><span style="color: #0000BB">$fp </span><span style="color: #007700">= </span><span style="color: #0000BB">fopen</span><span style="color: #007700">(</span><span style="color: #0000BB">__FILE__</span><span style="color: #007700">, </span><span style="color: #DD0000">'r'</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// Auf den Anfang der Daten positionieren<br /></span><span style="color: #0000BB">fseek</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">, </span><span style="color: #0000BB">__COMPILER_HALT_OFFSET__</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// und diese ausgeben<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">stream_get_contents</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">));<br /><br /></span><span style="color: #FF8000">// hier Kompilation beenden<br /></span><span style="color: #007700">__halt_compiler(); </span><span style="color: #0000BB">ab hier </span><span style="color: #007700">die </span><span style="color: #0000BB">eigentlichen Daten </span><span style="color: #007700">(</span><span style="color: #0000BB">z</span><span style="color: #007700">.</span><span style="color: #0000BB">B</span><span style="color: #007700">. </span><span style="color: #0000BB">tar</span><span style="color: #007700">, </span><span style="color: #0000BB">gz</span><span style="color: #007700">, </span><span style="color: #0000BB">PHP</span><span style="color: #007700">, </span><span style="color: #0000BB">etc</span><span style="color: #007700">.)</span></span></code></div>
    </div>

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


 <div class="refsect1 notes" id="refsect1-function.halt-compiler-notes">
  <h3 class="title">Anmerkungen</h3>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <p class="para">
    <span class="function"><strong>__halt_compiler()</strong></span> kann nur auf der höchsten
    Ausführungsebene und nicht innerhalb anderer Funktionen oder
    Methoden benutzt werden.
   </p>
  </p></blockquote>
 </div>


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