Skip to content

Commit 8f91051

Browse files
committed
Fix shared mode for gd/xml/mysql extensions.
1 parent efc84af commit 8f91051

File tree

4 files changed

+7
-12
lines changed

4 files changed

+7
-12
lines changed

acinclude.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ AC_DEFUN(PHP_EXTENSION,[
234234
EXT_LIBS="$EXT_LIBS $1/$_extlib"
235235
EXT_STATIC="$EXT_STATIC $1"
236236
else
237-
AC_DEFINE_UNQUOTED("COMPILE_DL_`echo $1|tr a-z A-Z`", 1, Whether to build $1 as dynamic module)
237+
AC_DEFINE_UNQUOTED(COMPILE_DL_`echo $1|tr a-z A-Z`, 1, Whether to build $1 as dynamic module)
238238
EXT_SHARED="$EXT_SHARED $1"
239239
fi
240240
PHP_OUTPUT(ext/$1/Makefile)

ext/gd/gd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ php3_module_entry gd_module_entry = {
135135
"gd", gd_functions, PHP_MINIT(gd), PHP_MSHUTDOWN(gd), NULL, NULL, PHP_MINFO(gd), STANDARD_MODULE_PROPERTIES
136136
};
137137

138-
#if COMPILE_DL
138+
#ifdef COMPILE_DL_GD
139139
# include "dl/phpdl.h"
140140
DLEXPORT php3_module_entry *get_module(void) { return &gd_module_entry; }
141141
#endif

ext/mysql/php_mysql.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424
* ? Safe mode implementation
2525
*/
2626

27-
#ifdef COMPILE_DL
28-
# include "dl/phpdl.h"
29-
#endif
30-
3127
#include "php.h"
3228
#include "php_globals.h"
3329
#include "ext/standard/php3_standard.h"
@@ -157,7 +153,8 @@ int mysql_globals_id;
157153
PHP_MYSQL_API php_mysql_globals mysql_globals;
158154
#endif
159155

160-
#ifdef COMPILE_DL
156+
#ifdef COMPILE_DL_MYSQL
157+
# include "dl/phpdl.h"
161158
DLEXPORT zend_module_entry *get_module(void) { return &mysql_module_entry; }
162159
#endif
163160

ext/xml/xml.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020
/* $Id$ */
2121
#define IS_EXT_MODULE
2222

23-
#if COMPILE_DL
24-
# include "dl/phpdl.h"
25-
#endif
2623
#include "php.h"
2724
#include "php3_xml.h"
2825
#include "zend_variables.h"
@@ -59,9 +56,10 @@ PHP_XML_API php_xml_globals xml_globals;
5956

6057
/* {{{ dynamically loadable module stuff */
6158

62-
# if COMPILE_DL
59+
#ifdef COMPILE_DL_XML
60+
# include "dl/phpdl.h"
6361
DLEXPORT zend_module_entry *get_module(void) { return &xml_module_entry; }
64-
# endif /* COMPILE_DL */
62+
#endif /* COMPILE_DL_XML */
6563

6664
/* }}} */
6765
/* {{{ function prototypes */

0 commit comments

Comments
 (0)