From 8dce85c2f2ae91fe6b2780a121b9b996c2eb1a56 Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Sun, 2 Dec 2001 00:42:22 +0000 Subject: [PATCH] Make ext_skel generate backward compatible module sources (flight from London to Paris is too short for any real work) --- ext/skeleton/skeleton.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ext/skeleton/skeleton.c b/ext/skeleton/skeleton.c index 82b1cfa4f84..dd3d27c1edc 100644 --- a/ext/skeleton/skeleton.c +++ b/ext/skeleton/skeleton.c @@ -30,7 +30,9 @@ function_entry extname_functions[] = { /* {{{ extname_module_entry */ zend_module_entry extname_module_entry = { +#if ZEND_MODULE_API_NO >= 20010901 STANDARD_MODULE_HEADER, +#endif "extname", extname_functions, PHP_MINIT(extname), @@ -38,7 +40,9 @@ zend_module_entry extname_module_entry = { PHP_RINIT(extname), /* Replace with NULL if there's nothing to do at request start */ PHP_RSHUTDOWN(extname), /* Replace with NULL if there's nothing to do at request end */ PHP_MINFO(extname), - "0.1", /* Replace with version number for your extension */ +#if ZEND_MODULE_API_NO >= 20010901 + FOO_VERSION, /* extension version number (string) */ +#endif STANDARD_MODULE_PROPERTIES }; /* }}} */