From b1f33db39f48c1254cc3661faf53890d213f07d0 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 8 Sep 2016 17:46:53 +0200 Subject: [PATCH] backport 59444347 and 3d7343f6 --- sapi/cgi/cgi_main.c | 4 ++++ sapi/cli/php_cli.c | 4 ++++ sapi/phpdbg/phpdbg.c | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index bf2c3d2d29e..a735056e9a6 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -92,6 +92,10 @@ int __riscosify_control = __RISCOSIFY_STRICT_UNIX_SPECS; #include "fastcgi.h" +#if defined(PHP_WIN32) && defined(HAVE_OPENSSL) +# include "openssl/applink.c" +#endif + #ifndef PHP_WIN32 /* XXX this will need to change later when threaded fastcgi is implemented. shane */ struct sigaction act, old_term, old_quit, old_int; diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 40a41e544de..a80e21c49e4 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -95,6 +95,10 @@ # include "win32/select.h" #endif +#if defined(PHP_WIN32) && defined(HAVE_OPENSSL) +# include "openssl/applink.c" +#endif + PHPAPI extern char *php_ini_opened_path; PHPAPI extern char *php_ini_scanned_path; PHPAPI extern char *php_ini_scanned_files; diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c index 01a4b5e4b4b..0e9b30e3a85 100644 --- a/sapi/phpdbg/phpdbg.c +++ b/sapi/phpdbg/phpdbg.c @@ -41,6 +41,10 @@ # include #endif /* }}} */ +#if defined(PHP_WIN32) && defined(HAVE_OPENSSL) +# include "openssl/applink.c" +#endif + ZEND_DECLARE_MODULE_GLOBALS(phpdbg); static zend_bool phpdbg_booted = 0;