summaryrefslogtreecommitdiff
path: root/ext/skeleton
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2001-12-02 00:42:22 +0000
committerRasmus Lerdorf <rasmus@php.net>2001-12-02 00:42:22 +0000
commit8dce85c2f2ae91fe6b2780a121b9b996c2eb1a56 (patch)
tree73e5385f9a9daa9d1dce81c46caf69311f451b3b /ext/skeleton
parent668782810019fd6f5cf02465cb986221d86c38d5 (diff)
downloadphp-git-8dce85c2f2ae91fe6b2780a121b9b996c2eb1a56.tar.gz
Make ext_skel generate backward compatible module sources
(flight from London to Paris is too short for any real work)
Diffstat (limited to 'ext/skeleton')
-rw-r--r--ext/skeleton/skeleton.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/skeleton/skeleton.c b/ext/skeleton/skeleton.c
index 82b1cfa4f8..dd3d27c1ed 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
};
/* }}} */