summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2013-10-14 16:08:21 +0200
committerAnatol Belski <ab@php.net>2013-10-14 16:08:21 +0200
commit78cbe9aed51080f8d66e83493bc0929b82ef4c0b (patch)
treecf3a23be1cd433f7ab6e085162c9c8e2763c02df
parent2c9fc139fe10dfa4ca5c93850dc60324eb06b342 (diff)
parent9ccde8a41571282521c677edf2b481a526ae03c9 (diff)
downloadphp-git-78cbe9aed51080f8d66e83493bc0929b82ef4c0b.tar.gz
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4: added notes about the PECL site conformity
-rw-r--r--README.EXTENSIONS2
-rw-r--r--README.EXT_SKEL5
-rw-r--r--README.SELF-CONTAINED-EXTENSIONS15
3 files changed, 21 insertions, 1 deletions
diff --git a/README.EXTENSIONS b/README.EXTENSIONS
index 51e3b730e7..7f06c0fb1b 100644
--- a/README.EXTENSIONS
+++ b/README.EXTENSIONS
@@ -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
};
diff --git a/README.EXT_SKEL b/README.EXT_SKEL
index b0db843a42..d44fcc5c6a 100644
--- a/README.EXT_SKEL
+++ b/README.EXT_SKEL
@@ -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
diff --git a/README.SELF-CONTAINED-EXTENSIONS b/README.SELF-CONTAINED-EXTENSIONS
index e6a375331b..5287230e1a 100644
--- a/README.SELF-CONTAINED-EXTENSIONS
+++ b/README.SELF-CONTAINED-EXTENSIONS
@@ -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.
+