Skip to content

Commit 5d8ea3b

Browse files
committed
TSRMLS
1 parent 4afa56f commit 5d8ea3b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ext/openssl/xp_ssl.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -769,10 +769,9 @@ php_stream_ops php_openssl_socket_ops = {
769769
php_openssl_sockop_set_option,
770770
};
771771

772-
static char * get_sni(php_stream_context *ctx, char *resourcename, long resourcenamelen, int is_persistent) {
772+
static char * get_sni(php_stream_context *ctx, char *resourcename, long resourcenamelen, int is_persistent TSRMLS_DC) {
773773

774774
php_url *url;
775-
TSRMLS_FETCH();
776775

777776
if (ctx) {
778777
zval **val = NULL;
@@ -852,7 +851,7 @@ php_stream *php_openssl_ssl_socket_factory(const char *proto, long protolen,
852851
return NULL;
853852
}
854853

855-
sslsock->sni = get_sni(context, resourcename, resourcenamelen, !!persistent_id);
854+
sslsock->sni = get_sni(context, resourcename, resourcenamelen, !!persistent_id TSRMLS_CC);
856855

857856
if (strncmp(proto, "ssl", protolen) == 0) {
858857
sslsock->enable_on_connect = 1;

0 commit comments

Comments
 (0)