- Some more details about extension files

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@242171 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Johannes Schlüter 2007-09-04 23:55:17 +00:00
parent ecaf6fc416
commit 804e9a7157

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<sect1 xml:id="internals2.structure.files" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Files which make up an extension</title>
<para>
@ -34,10 +34,11 @@
<term><filename>php_example.h</filename></term>
<listitem>
<para>
Main extension header file. By convention, the name of this file is
<literal>php_</literal> prepended to the extension name, but this is not
a requirement. This file contains macros, prototypes, and globals, just
like any header.
When building an extension as static module into the PHP binary the
build system expects a header file with <literal>php_</literal>
prepended to the extension name which includes a declaration for a
pointer to the extension's module structure. This file usually contains
additional macros, prototypes, and globals, just like any header.
</para>
</listitem>
</varlistentry>
@ -46,8 +47,8 @@
<term><filename>example.c</filename></term>
<listitem>
<para>
Main extension source file. Again by convention, this name of this file
is the extension name, but again this is not a requirement. This file
Main extension source file. By convention, the name of this file
is the extension name, but this is not a requirement. This file
contains the module structure declaration, INI entries, management
functions, userspace functions, and other requirements of an extension.
</para>
@ -113,9 +114,12 @@ ext/
<para>
The <filename>CREDITS</filename> file lists the contributors and/or
maintainers of the extension in plain text format, preferably including
contact information, and sometimes a website for the extension. This file
is only one way to document this information. In a &link.pecl; package,
maintainers of the extension in plain text format. The main purpose of
this file is generating the credits information for bundled extensions as
used by <function>phpcredits</function>. By convention the first line of
the file should hold the name of the extension, the second a comma
separated list of contributors. The contributors are usually ordered by the
chronological order of their contributions. In a &link.pecl; package,
this information is already maintained in <filename>package.xml</filename>,
for example. This is another file which can be omitted without ill effect.
</para>