summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-12-01 14:56:30 +0000
committerSascha Schumann <sas@php.net>2000-12-01 14:56:30 +0000
commit8e3abe8946125d494e7911ec72fbc390dfece2b0 (patch)
tree4ef792ef57e877eb49d2f2366add853f41a76bc3
parentb3b277f32a5bd0cd428ac76f54a1ba7e99eb4e62 (diff)
downloadphp-git-8e3abe8946125d494e7911ec72fbc390dfece2b0.tar.gz
Get rid of HAVE_EXTNAME. This dates back to PHP 3 where source files
were unconditionally compiled. It is not necessary in PHP 4.
-rwxr-xr-xext/ext_skel1
-rw-r--r--ext/skeleton/php_skeleton.h11
-rw-r--r--ext/skeleton/skeleton.c7
3 files changed, 0 insertions, 19 deletions
diff --git a/ext/ext_skel b/ext/ext_skel
index d34f4c62b8..98f456916b 100755
--- a/ext/ext_skel
+++ b/ext/ext_skel
@@ -131,7 +131,6 @@ if test "\$PHP_$EXTNAME" != "no"; then
dnl If you will not be testing anything external, like existence of
dnl headers, libraries or functions in them, just uncomment the
dnl following line and you are ready to go.
- dnl AC_DEFINE(HAVE_$EXTNAME, 1, [ ])
dnl Write more examples of tests here...
PHP_EXTENSION($extname, \$ext_shared)
fi
diff --git a/ext/skeleton/php_skeleton.h b/ext/skeleton/php_skeleton.h
index 2fadf2b087..9f052040fb 100644
--- a/ext/skeleton/php_skeleton.h
+++ b/ext/skeleton/php_skeleton.h
@@ -3,11 +3,6 @@
#ifndef PHP_EXTNAME_H
#define PHP_EXTNAME_H
-/* You should tweak config.m4 so this symbol (or some else suitable)
- gets defined.
-*/
-#if HAVE_EXTNAME
-
extern zend_module_entry extname_module_entry;
#define phpext_extname_ptr &extname_module_entry
@@ -50,12 +45,6 @@ ZEND_END_MODULE_GLOBALS(extname)
#define EXTNAMELS_FETCH()
#endif
-#else
-
-#define phpext_extname_ptr NULL
-
-#endif
-
#endif /* PHP_EXTNAME_H */
/* __footer_here__ */
diff --git a/ext/skeleton/skeleton.c b/ext/skeleton/skeleton.c
index 5bb696ae61..7b2d63b1ea 100644
--- a/ext/skeleton/skeleton.c
+++ b/ext/skeleton/skeleton.c
@@ -4,11 +4,6 @@
#include "php_ini.h"
#include "php_extname.h"
-/* You should tweak config.m4 so this symbol (or some else suitable)
- gets defined.
-*/
-#if HAVE_EXTNAME
-
/* If you declare any globals in php_extname.h uncomment this:
ZEND_DECLARE_MODULE_GLOBALS(extname)
*/
@@ -114,6 +109,4 @@ PHP_FUNCTION(confirm_extname_compiled)
/* __function_stubs_here__ */
-#endif /* HAVE_EXTNAME */
-
/* __footer_here__ */