diff --git a/internals2/structure/files.xml b/internals2/structure/files.xml index 03df6cb2e2..1a821b4715 100644 --- a/internals2/structure/files.xml +++ b/internals2/structure/files.xml @@ -1,5 +1,5 @@ - + Files which make up an extension @@ -34,10 +34,11 @@ php_example.h - Main extension header file. By convention, the name of this file is - php_ 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 php_ + 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. @@ -46,8 +47,8 @@ example.c - 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. @@ -113,9 +114,12 @@ ext/ The CREDITS 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 phpcredits. 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 package.xml, for example. This is another file which can be omitted without ill effect.