Skip to content

Commit

Permalink
added notes about the PECL site conformity
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed Oct 14, 2013
1 parent 7a038cc commit 9ccde8a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.EXTENSIONS
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ zend_module_entry foo_module_entry = {
PHP_RSHUTDOWN(foo), /* per-request shutdown function */
PHP_MINFO(foo), /* information function */
#if ZEND_MODULE_API_NO >= 20010901
FOO_VERSION, /* extension version number (string) */
PHP_FOO_VERSION, /* extension version number (string) */
#endif
STANDARD_MODULE_PROPERTIES
};
Expand Down
5 changes: 5 additions & 0 deletions README.EXT_SKEL
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ HOW TO USE IT

./buildconf; ./configure --enable-module_name; make

The definition of PHP_MODULE_NAME_VERSION will be present in the
php_module_name.h and injected into the zend_module_entry definition. This
is required by the PECL website for the version string conformity checks
against package.xml

But if you already have planned the overall scheme of your module, what
functions it will contain, their return types and the arguments they take
(a very good idea) and don't want to bother yourself with creating function
Expand Down
15 changes: 15 additions & 0 deletions README.SELF-CONTAINED-EXTENSIONS
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,18 @@ ADDING SHARED MODULE SUPPORT TO A MODULE
#ifdef COMPILE_DL_FOO
ZEND_GET_MODULE(foo)
#endif

PECL SITE CONFORMITY

If you plan to release an extension to the PECL website, there are several
points to be regarded.

1. Add LICENSE or COPYING to the package.xml

2. The following should be defined in one of the extension header files

#define PHP_FOO_VERSION "1.2.3"

This macros has to be used within your foo_module_entry to indicate the
extension version.

0 comments on commit 9ccde8a

Please sign in to comment.