Skip to content

Commit 8dce85c

Browse files
committed
Make ext_skel generate backward compatible module sources
(flight from London to Paris is too short for any real work)
1 parent 6687828 commit 8dce85c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ext/skeleton/skeleton.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,19 @@ function_entry extname_functions[] = {
3030
/* {{{ extname_module_entry
3131
*/
3232
zend_module_entry extname_module_entry = {
33+
#if ZEND_MODULE_API_NO >= 20010901
3334
STANDARD_MODULE_HEADER,
35+
#endif
3436
"extname",
3537
extname_functions,
3638
PHP_MINIT(extname),
3739
PHP_MSHUTDOWN(extname),
3840
PHP_RINIT(extname), /* Replace with NULL if there's nothing to do at request start */
3941
PHP_RSHUTDOWN(extname), /* Replace with NULL if there's nothing to do at request end */
4042
PHP_MINFO(extname),
41-
"0.1", /* Replace with version number for your extension */
43+
#if ZEND_MODULE_API_NO >= 20010901
44+
FOO_VERSION, /* extension version number (string) */
45+
#endif
4246
STANDARD_MODULE_PROPERTIES
4347
};
4448
/* }}} */

0 commit comments

Comments
 (0)