diff options
Diffstat (limited to 'ext/openssl/openssl.c')
-rw-r--r-- | ext/openssl/openssl.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/openssl/openssl.c b/ext/openssl/openssl.c index 7fc9da3f5d..b48d0909d6 100644 --- a/ext/openssl/openssl.c +++ b/ext/openssl/openssl.c @@ -30,6 +30,7 @@ /* PHP Includes */ #include "ext/standard/file.h" #include "ext/standard/info.h" +#include "ext/standard/php_fopen_wrappers.h" /* OpenSSL includes */ #include <openssl/evp.h> @@ -614,6 +615,9 @@ PHP_MINIT_FUNCTION(openssl) /* override the default tcp socket provider */ php_stream_xport_register("tcp", php_openssl_ssl_socket_factory TSRMLS_CC); + + php_register_url_stream_wrapper("https", &php_stream_http_wrapper TSRMLS_CC); + php_register_url_stream_wrapper("ftps", &php_stream_ftp_wrapper TSRMLS_CC); return SUCCESS; } @@ -636,6 +640,9 @@ PHP_MSHUTDOWN_FUNCTION(openssl) { EVP_cleanup(); + php_unregister_url_stream_wrapper("https" TSRMLS_CC); + php_unregister_url_stream_wrapper("ftps" TSRMLS_CC); + php_stream_xport_unregister("ssl" TSRMLS_CC); php_stream_xport_unregister("tls" TSRMLS_CC); |