vrana Wed Sep 21 17:20:33 2005 EDT
Modified files: /phpdoc/en/language control-structures.xml Log: Undocument __halt_compiler documented elsewhere http://cvs.php.net/diff.php/phpdoc/en/language/control-structures.xml?r1=1.126&r2=1.127&ty=u Index: phpdoc/en/language/control-structures.xml diff -u phpdoc/en/language/control-structures.xml:1.126 phpdoc/en/language/control-structures.xml:1.127 --- phpdoc/en/language/control-structures.xml:1.126 Wed Sep 21 08:43:14 2005 +++ phpdoc/en/language/control-structures.xml Wed Sep 21 17:20:27 2005 @@ -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 @@ </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