summaryrefslogtreecommitdiff
path: root/ext/ftp/php_ftp.c
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2003-12-06 16:12:10 +0000
committerWez Furlong <wez@php.net>2003-12-06 16:12:10 +0000
commitbf033aa5a8d210615fcef0e5fdb0f6ac4bd5a258 (patch)
treefedc8647b9c478dfdc51d152881ecdb6cebffb8a /ext/ftp/php_ftp.c
parentfcdda2e8f8182a38404e3e5db2bb560a9348cd17 (diff)
downloadphp-git-bf033aa5a8d210615fcef0e5fdb0f6ac4bd5a258.tar.gz
Fix ftp build when openssl is built as a shared extension.
Diffstat (limited to 'ext/ftp/php_ftp.c')
-rw-r--r--ext/ftp/php_ftp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/ftp/php_ftp.c b/ext/ftp/php_ftp.c
index 21a0cf52a5..a88bea31c8 100644
--- a/ext/ftp/php_ftp.c
+++ b/ext/ftp/php_ftp.c
@@ -35,8 +35,8 @@
#endif
#endif
-#ifdef HAVE_OPENSSL_EXT
-#include <openssl/ssl.h>
+#if HAVE_OPENSSL_EXT
+# include <openssl/ssl.h>
#endif
#if HAVE_FTP
@@ -59,7 +59,7 @@ static
function_entry php_ftp_functions[] = {
PHP_FE(ftp_connect, NULL)
-#ifdef HAVE_OPENSSL_EXT
+#if HAVE_OPENSSL_EXT
PHP_FE(ftp_ssl_connect, NULL)
#endif
PHP_FE(ftp_login, NULL)
@@ -110,7 +110,7 @@ zend_module_entry php_ftp_module_entry = {
STANDARD_MODULE_PROPERTIES
};
-#ifdef COMPILE_DL_FTP
+#if COMPILE_DL_FTP
ZEND_GET_MODULE(php_ftp)
#endif
@@ -179,7 +179,7 @@ PHP_FUNCTION(ftp_connect)
/* autoseek for resuming */
ftp->autoseek = FTP_DEFAULT_AUTOSEEK;
-#ifdef HAVE_OPENSSL_EXT
+#if HAVE_OPENSSL_EXT
/* disable ssl */
ftp->use_ssl = 0;
#endif
@@ -188,7 +188,7 @@ PHP_FUNCTION(ftp_connect)
}
/* }}} */
-#ifdef HAVE_OPENSSL_EXT
+#if HAVE_OPENSSL_EXT
/* {{{ proto resource ftp_ssl_connect(string host [, int port [, int timeout]])
Opens a FTP-SSL stream */
PHP_FUNCTION(ftp_ssl_connect)