mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- use TSRMLS_D/C with php_stream_context_alloc
This commit is contained in:
parent
daa90813fb
commit
ed58636f00
7 changed files with 20 additions and 11 deletions
|
@ -3222,7 +3222,7 @@ sdlPtr get_sdl(zval *this_ptr, char *uri, long cache_wsdl TSRMLS_DC)
|
|||
"_stream_context", sizeof("_stream_context"), (void**)&tmp)) {
|
||||
context = php_stream_context_from_zval(*tmp, 0);
|
||||
} else {
|
||||
context = php_stream_context_alloc();
|
||||
context = php_stream_context_alloc(TSRMLS_C);
|
||||
}
|
||||
|
||||
if (zend_hash_find(Z_OBJPROP_P(this_ptr), "_proxy_host", sizeof("_proxy_host"), (void **) &proxy_host) == SUCCESS &&
|
||||
|
@ -3245,7 +3245,7 @@ sdlPtr get_sdl(zval *this_ptr, char *uri, long cache_wsdl TSRMLS_DC)
|
|||
smart_str_free(&proxy);
|
||||
|
||||
if (!context) {
|
||||
context = php_stream_context_alloc();
|
||||
context = php_stream_context_alloc(TSRMLS_C);
|
||||
}
|
||||
php_stream_context_set_option(context, "http", "proxy", str_proxy);
|
||||
zval_ptr_dtor(&str_proxy);
|
||||
|
@ -3274,7 +3274,7 @@ sdlPtr get_sdl(zval *this_ptr, char *uri, long cache_wsdl TSRMLS_DC)
|
|||
zval *str_headers;
|
||||
|
||||
if (!context) {
|
||||
context = php_stream_context_alloc();
|
||||
context = php_stream_context_alloc(TSRMLS_C);
|
||||
}
|
||||
|
||||
smart_str_0(&headers);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue