From: Stig Bakken Date: Sat, 4 Dec 1999 14:45:38 +0000 (+0000) Subject: Fix shared mode for gd/xml/mysql extensions. X-Git-Tag: PRE_RETURN_REF_PATCH~83 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f91051ddaff61f7b8e0940f79e50a83ba6a3329;p=php Fix shared mode for gd/xml/mysql extensions. --- diff --git a/acinclude.m4 b/acinclude.m4 index a9c8faa0af..96b59161e1 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -234,7 +234,7 @@ AC_DEFUN(PHP_EXTENSION,[ EXT_LIBS="$EXT_LIBS $1/$_extlib" EXT_STATIC="$EXT_STATIC $1" else - AC_DEFINE_UNQUOTED("COMPILE_DL_`echo $1|tr a-z A-Z`", 1, Whether to build $1 as dynamic module) + AC_DEFINE_UNQUOTED(COMPILE_DL_`echo $1|tr a-z A-Z`, 1, Whether to build $1 as dynamic module) EXT_SHARED="$EXT_SHARED $1" fi PHP_OUTPUT(ext/$1/Makefile) diff --git a/ext/gd/gd.c b/ext/gd/gd.c index df74ab9754..bcf867cd33 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -135,7 +135,7 @@ php3_module_entry gd_module_entry = { "gd", gd_functions, PHP_MINIT(gd), PHP_MSHUTDOWN(gd), NULL, NULL, PHP_MINFO(gd), STANDARD_MODULE_PROPERTIES }; -#if COMPILE_DL +#ifdef COMPILE_DL_GD # include "dl/phpdl.h" DLEXPORT php3_module_entry *get_module(void) { return &gd_module_entry; } #endif diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 3d9b5e7982..234f280767 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -24,10 +24,6 @@ * ? Safe mode implementation */ -#ifdef COMPILE_DL -# include "dl/phpdl.h" -#endif - #include "php.h" #include "php_globals.h" #include "ext/standard/php3_standard.h" @@ -157,7 +153,8 @@ int mysql_globals_id; PHP_MYSQL_API php_mysql_globals mysql_globals; #endif -#ifdef COMPILE_DL +#ifdef COMPILE_DL_MYSQL +# include "dl/phpdl.h" DLEXPORT zend_module_entry *get_module(void) { return &mysql_module_entry; } #endif diff --git a/ext/xml/xml.c b/ext/xml/xml.c index 4afbf30f3e..22ad953804 100644 --- a/ext/xml/xml.c +++ b/ext/xml/xml.c @@ -20,9 +20,6 @@ /* $Id$ */ #define IS_EXT_MODULE -#if COMPILE_DL -# include "dl/phpdl.h" -#endif #include "php.h" #include "php3_xml.h" #include "zend_variables.h" @@ -59,9 +56,10 @@ PHP_XML_API php_xml_globals xml_globals; /* {{{ dynamically loadable module stuff */ -# if COMPILE_DL +#ifdef COMPILE_DL_XML +# include "dl/phpdl.h" DLEXPORT zend_module_entry *get_module(void) { return &xml_module_entry; } -# endif /* COMPILE_DL */ +#endif /* COMPILE_DL_XML */ /* }}} */ /* {{{ function prototypes */