Skip to content

Commit 3735d83

Browse files
committed
ext/soap: Rename MD5 context variable to not shadow the stream context variable
1 parent 47c3a30 commit 3735d83

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/soap/php_sdl.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3193,17 +3193,17 @@ sdlPtr get_sdl(zval *this_ptr, char *uri, zend_long cache_wsdl)
31933193
if ((cache_wsdl & WSDL_CACHE_DISK) && (uri_len < MAXPATHLEN)) {
31943194
time_t t = time(0);
31953195
char md5str[33];
3196-
PHP_MD5_CTX context;
3196+
PHP_MD5_CTX md5_context;
31973197
unsigned char digest[16];
31983198
int len = strlen(SOAP_GLOBAL(cache_dir));
31993199
time_t cached;
32003200
char *user = php_get_current_user();
32013201
int user_len = user ? strlen(user) + 1 : 0;
32023202

32033203
md5str[0] = '\0';
3204-
PHP_MD5Init(&context);
3205-
PHP_MD5Update(&context, (unsigned char*)uri, uri_len);
3206-
PHP_MD5Final(digest, &context);
3204+
PHP_MD5Init(&md5_context);
3205+
PHP_MD5Update(&md5_context, (unsigned char*)uri, uri_len);
3206+
PHP_MD5Final(digest, &md5_context);
32073207
make_digest(md5str, digest);
32083208
key = emalloc(len+sizeof("/wsdl-")-1+user_len+2+sizeof(md5str));
32093209
memcpy(key,SOAP_GLOBAL(cache_dir),len);

0 commit comments

Comments
 (0)