diff options
-rw-r--r-- | ext/ftp/Makefile.in | 1 | ||||
-rw-r--r-- | ext/ftp/config.m4 | 2 | ||||
-rw-r--r-- | ext/ftp/php_ftp.c | 4 |
3 files changed, 6 insertions, 1 deletions
diff --git a/ext/ftp/Makefile.in b/ext/ftp/Makefile.in index 9f61048362..169973b7e1 100644 --- a/ext/ftp/Makefile.in +++ b/ext/ftp/Makefile.in @@ -1,5 +1,6 @@ LTLIBRARY_NAME = libftp.la LTLIBRARY_SOURCES = php_ftp.c ftp.c +LTLIBRARY_SHARED_NAME = ftp.la include $(top_srcdir)/build/dynlib.mk diff --git a/ext/ftp/config.m4 b/ext/ftp/config.m4 index 0c29da61d8..5060ea5a85 100644 --- a/ext/ftp/config.m4 +++ b/ext/ftp/config.m4 @@ -7,5 +7,5 @@ PHP_ARG_ENABLE(ftp,whether to enable FTP support, if test "$PHP_FTP" = "yes"; then AC_DEFINE(HAVE_FTP,1,[Whether you want FTP support]) - PHP_EXTENSION(ftp) + PHP_EXTENSION(ftp, $ext_shared) fi diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c index 390af90887..bc67252b41 100644 --- a/ext/ftp/php_ftp.c +++ b/ext/ftp/php_ftp.c @@ -78,6 +78,10 @@ zend_module_entry php_ftp_module_entry = { STANDARD_MODULE_PROPERTIES }; +#ifdef COMPILE_DL_FTP +ZEND_GET_MODULE(php_ftp) +#endif + static void ftp_destructor_ftpbuf(ftpbuf_t *ftp) { ftp_close(ftp); |