Skip to content

Commit dcfd753

Browse files
committed
fixed skeleton to produce the normalized ext version macros
See http://news.php.net/php.pecl.dev/11191 for more info.
1 parent ea4ef75 commit dcfd753

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ext/skeleton/php_skeleton.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
extern zend_module_entry extname_module_entry;
77
#define phpext_extname_ptr &extname_module_entry
88

9+
#define PHP_EXTNAME_VERSION "0.1.0" /* Replace with version number for your extension */
10+
911
#ifdef PHP_WIN32
1012
# define PHP_EXTNAME_API __declspec(dllexport)
1113
#elif defined(__GNUC__) && __GNUC__ >= 4

ext/skeleton/skeleton.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ zend_module_entry extname_module_entry = {
142142
PHP_RINIT(extname), /* Replace with NULL if there's nothing to do at request start */
143143
PHP_RSHUTDOWN(extname), /* Replace with NULL if there's nothing to do at request end */
144144
PHP_MINFO(extname),
145-
"0.1", /* Replace with version number for your extension */
145+
PHP_EXTNAME_VERSION,
146146
STANDARD_MODULE_PROPERTIES
147147
};
148148
/* }}} */

0 commit comments

Comments
 (0)