File tree 3 files changed +21
-1
lines changed
3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ zend_module_entry foo_module_entry = {
30
30
PHP_RSHUTDOWN(foo), /* per-request shutdown function */
31
31
PHP_MINFO(foo), /* information function */
32
32
#if ZEND_MODULE_API_NO >= 20010901
33
- FOO_VERSION , /* extension version number (string) */
33
+ PHP_FOO_VERSION , /* extension version number (string) */
34
34
#endif
35
35
STANDARD_MODULE_PROPERTIES
36
36
};
Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ HOW TO USE IT
31
31
32
32
./buildconf; ./configure --enable-module_name; make
33
33
34
+ The definition of PHP_MODULE_NAME_VERSION will be present in the
35
+ php_module_name.h and injected into the zend_module_entry definition. This
36
+ is required by the PECL website for the version string conformity checks
37
+ against package.xml
38
+
34
39
But if you already have planned the overall scheme of your module, what
35
40
functions it will contain, their return types and the arguments they take
36
41
(a very good idea) and don't want to bother yourself with creating function
Original file line number Diff line number Diff line change @@ -153,3 +153,18 @@ ADDING SHARED MODULE SUPPORT TO A MODULE
153
153
#ifdef COMPILE_DL_FOO
154
154
ZEND_GET_MODULE(foo)
155
155
#endif
156
+
157
+ PECL SITE CONFORMITY
158
+
159
+ If you plan to release an extension to the PECL website, there are several
160
+ points to be regarded.
161
+
162
+ 1. Add LICENSE or COPYING to the package.xml
163
+
164
+ 2. The following should be defined in one of the extension header files
165
+
166
+ #define PHP_FOO_VERSION "1.2.3"
167
+
168
+ This macros has to be used within your foo_module_entry to indicate the
169
+ extension version.
170
+
You can’t perform that action at this time.
0 commit comments