Skip to content

Commit

Permalink
Get rid of HAVE_EXTNAME. This dates back to PHP 3 where source files
Browse files Browse the repository at this point in the history
were unconditionally compiled. It is not necessary in PHP 4.
  • Loading branch information
Sascha Schumann committed Dec 1, 2000
1 parent b3b277f commit 8e3abe8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion ext/ext_skel
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 0 additions & 11 deletions ext/skeleton/php_skeleton.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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__ */
7 changes: 0 additions & 7 deletions ext/skeleton/skeleton.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*/
Expand Down Expand Up @@ -114,6 +109,4 @@ PHP_FUNCTION(confirm_extname_compiled)

/* __function_stubs_here__ */

#endif /* HAVE_EXTNAME */

/* __footer_here__ */

0 comments on commit 8e3abe8

Please sign in to comment.