mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Undocument __halt_compiler documented elsewhere
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@196550 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
c700dfc57f
commit
4ad8cfcfff
1 changed files with 1 additions and 33 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.126 $ -->
|
||||
<!-- $Revision: 1.127 $ -->
|
||||
<chapter id="language.control-structures">
|
||||
<title>Control Structures</title>
|
||||
|
||||
|
@ -1762,38 +1762,6 @@ include_once("A.php"); // this will include a.php again on Windows! (PHP 4 only)
|
|||
</para>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="function.--halt-compiler">
|
||||
<title><function>__halt_compiler</function></title>
|
||||
<para>
|
||||
The <function>__halt_compiler</function> statement stops the processing of
|
||||
PHP instructions.
|
||||
</para>
|
||||
<para>
|
||||
The main purpose of this statement is to allow creating scripts containing
|
||||
any data (possibly also <link linkend="language.basic-syntax.phpmode">PHP
|
||||
start tags</link>) such as one-file installers. Byte position of the data
|
||||
start can be determined by the
|
||||
<constant>__COMPILER_HALT_OFFSET__</constant> constant which is defined
|
||||
only if there is a <function>__halt_compiler</function> presented in the
|
||||
file.
|
||||
</para>
|
||||
<example>
|
||||
<title><function>__halt_compiler</function> example</title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
echo file_get_contents(__FILE__, false, NULL, __COMPILER_HALT_OFFSET__);
|
||||
__halt_compiler();some archive data, which can be binary
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
<note>
|
||||
<para>
|
||||
<function>__halt_compiler</function> was added in PHP 5.1.
|
||||
</para>
|
||||
</note>
|
||||
</sect1>
|
||||
|
||||
</chapter>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
|
|
Loading…
Reference in a new issue