svn: /phpdoc/zh/trunk/reference/misc/functions/ halt-compiler.xml
| From: | Dai Jie | Date: | Thu, 19 Jan 2017 15:17:53 +0000 |
| Subject: | svn: /phpdoc/zh/trunk/reference/misc/functions/ halt-compiler.xml | ||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-4762@lists.php.net to get a copy of this message | ||
daijie Thu, 19 Jan 2017 15:17:53 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=341697
Log:
Add revcheck tag
Changed paths:
UU phpdoc/zh/trunk/reference/misc/functions/halt-compiler.xml
Modified: phpdoc/zh/trunk/reference/misc/functions/halt-compiler.xml
===================================================================
--- phpdoc/zh/trunk/reference/misc/functions/halt-compiler.xml 2017-01-19 15:16:27 UTC (rev 341696)
+++ phpdoc/zh/trunk/reference/misc/functions/halt-compiler.xml 2017-01-19 15:17:53 UTC (rev 341697)
@@ -1,87 +1,88 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision$ -->
-<refentry xml:id="function.halt-compiler" xmlns="http://docbook.org/ns/docbook">
- <refnamediv>
- <refname>__halt_compiler</refname>
- <refpurpose>
- 中断编译器的执行
- </refpurpose>
- </refnamediv>
- <refsect1 role="description">
- &reftitle.description;
- <methodsynopsis>
- <type>void</type><methodname>__halt_compiler</methodname>
- <void/>
- </methodsynopsis>
- <para>
- 中断编译器的执行。常用于在PHP脚本内嵌入数据,类似于安装文件。
- </para>
- <para>
- 可以通过常量 <constant>__COMPILER_HALT_OFFSET__</constant>
获取数据开始字节所在的位置,且该常量仅被定义于使用了__halt_compiler的文件。
- </para>
- </refsect1>
-
- <refsect1 role="returnvalues">
- &reftitle.returnvalues;
- <para>
- &return.void;
- </para>
- </refsect1>
-
- <refsect1 role="examples">
- &reftitle.examples;
- <para>
- <example>
- <title>A <function>__halt_compiler</function> 例子</title>
- <programlisting role="php">
-<![CDATA[
-<?php
-
-// open this file
-$fp = fopen(__FILE__, 'r');
-
-// seek file pointer to data
-fseek($fp, __COMPILER_HALT_OFFSET__);
-
-// and output it
-var_dump(stream_get_contents($fp));
-
-// the end of the script execution
-__halt_compiler(); the installation data (eg. tar, gz, PHP, etc.)
-]]>
- </programlisting>
- </example>
- </para>
- </refsect1>
-
- <refsect1 role="notes">
- &reftitle.notes;
- <note>
- <para>
- <function>__halt_compiler</function> 仅能够在最外层使用。
- </para>
- </note>
- </refsect1>
-
-</refentry>
-
-<!-- Keep this comment at the end of the file
-Local variables:
-mode: sgml
-sgml-omittag:t
-sgml-shorttag:t
-sgml-minimize-attributes:nil
-sgml-always-quote-attributes:t
-sgml-indent-step:1
-sgml-indent-data:t
-indent-tabs-mode:nil
-sgml-parent-document:nil
-sgml-default-dtd-file:"~/.phpdoc/manual.ced"
-sgml-exposed-tags:nil
-sgml-local-catalogs:nil
-sgml-local-ecat-files:nil
-End:
-vim600: syn=xml fen fdm=syntax fdl=2 si
-vim: et tw=78 syn=sgml
-vi: ts=1 sw=1
--->
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 297028 Maintainer: daijie Status: ready -->
+<refentry xml:id="function.halt-compiler" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>__halt_compiler</refname>
+ <refpurpose>
+ 中断编译器的执行
+ </refpurpose>
+ </refnamediv>
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>void</type><methodname>__halt_compiler</methodname>
+ <void/>
+ </methodsynopsis>
+ <para>
+ 中断编译器的执行。常用于在PHP脚本内嵌入数据,类似于安装文件。
+ </para>
+ <para>
+ 可以通过常量 <constant>__COMPILER_HALT_OFFSET__</constant>
获取数据开始字节所在的位置,且该常量仅被定义于使用了__halt_compiler的文件。
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ &return.void;
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title><function>__halt_compiler</function> 例子</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+// open this file
+$fp = fopen(__FILE__, 'r');
+
+// seek file pointer to data
+fseek($fp, __COMPILER_HALT_OFFSET__);
+
+// and output it
+var_dump(stream_get_contents($fp));
+
+// the end of the script execution
+__halt_compiler(); the installation data (eg. tar, gz, PHP, etc.)
+]]>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="notes">
+ &reftitle.notes;
+ <note>
+ <para>
+ <function>__halt_compiler</function> 仅能够在最外层使用。
+ </para>
+ </note>
+ </refsect1>
+
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:1
+sgml-indent-data:t
+indent-tabs-mode:nil
+sgml-parent-document:nil
+sgml-default-dtd-file:"~/.phpdoc/manual.ced"
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+vim600: syn=xml fen fdm=syntax fdl=2 si
+vim: et tw=78 syn=sgml
+vi: ts=1 sw=1
+-->
Property changes on: phpdoc/zh/trunk/reference/misc/functions/halt-compiler.xml
___________________________________________________________________
Added: svn:eol-style
+ native