Skip to content

Commit 5944434

Browse files
committed
integrate the openssl applink shim
This fixes ext/openssl/tests/openssl_spki_export.phpt failing with the no OPENSSL_Applink error. Applink is also an interesting technique documented in the OpenSSL FAQ https://www.openssl.org/support/faq.html#PROG2 which allows under circumstances using different OpenSSL binaries than those a program was linked with.
1 parent e8f992c commit 5944434

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sapi/cli/php_cli.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@
9494
# include "win32/select.h"
9595
#endif
9696

97+
#if defined(PHP_WIN32) && defined(HAVE_OPENSSL)
98+
# include "openssl/applink.c"
99+
#endif
100+
97101
PHPAPI extern char *php_ini_opened_path;
98102
PHPAPI extern char *php_ini_scanned_path;
99103
PHPAPI extern char *php_ini_scanned_files;

0 commit comments

Comments
 (0)